Skip to content

Commit 85016e0

Browse files
committed
HHH-11640 - Fix test failing on MariaDB
1 parent 72506a6 commit 85016e0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

hibernate-core/src/test/java/org/hibernate/jpa/test/query/NamedQueryCommentTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77
package org.hibernate.jpa.test.query;
88

9-
import java.sql.Statement;
109
import java.util.List;
1110
import java.util.Map;
1211
import javax.persistence.Entity;
@@ -17,7 +16,6 @@
1716
import javax.persistence.Table;
1817
import javax.persistence.TypedQuery;
1918

20-
import org.hibernate.Session;
2119
import org.hibernate.annotations.NamedNativeQuery;
2220
import org.hibernate.annotations.NamedQuery;
2321
import org.hibernate.cfg.AvailableSettings;
@@ -140,7 +138,7 @@ public void testSelectNamedNativeQueryWithSqlComment() {
140138

141139
assertNotNull(
142140
connectionProvider.getPreparedStatement(
143-
"/* + INDEX (game idx_game_title) */ select * from Game g where title = ?"
141+
"/* + INDEX (game idx_game_title) */ select * from game g where title = ?"
144142
)
145143
);
146144
} );
@@ -292,7 +290,7 @@ public void testSelectNamedNativeQueryWithQueryHintUsingIndex() {
292290
)
293291
@NamedNativeQuery(
294292
name = "SelectNamedNativeQuery",
295-
query = "select * from Game g where title = :title",
293+
query = "select * from game g where title = :title",
296294
comment = "+ INDEX (game idx_game_title) ",
297295
resultClass = Game.class
298296
)

0 commit comments

Comments
 (0)