Skip to content

Commit cd0e807

Browse files
committed
Polishing.
Use AUTO_INCREMENT instead of serial data type for H2 tests. See #710.
1 parent 36a1400 commit cd0e807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/springframework/data/r2dbc/testing/H2TestSupport.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class H2TestSupport {
4141
+ ");";
4242

4343
public static String CREATE_TABLE_LEGOSET_WITH_ID_GENERATION = "CREATE TABLE legoset (\n" //
44-
+ " id serial CONSTRAINT id1 PRIMARY KEY,\n" //
44+
+ " id integer AUTO_INCREMENT CONSTRAINT id1 PRIMARY KEY,\n" //
4545
+ " version integer NULL,\n" //
4646
+ " name varchar(255) NOT NULL,\n" //
4747
+ " extra varchar(255),\n" //
@@ -50,7 +50,7 @@ public class H2TestSupport {
5050
+ ");";
5151

5252
public static String CREATE_TABLE_LEGOSET_WITH_MIXED_CASE_NAMES = "CREATE TABLE \"LegoSet\" (\n" //
53-
+ " \"Id\" serial CONSTRAINT id2 PRIMARY KEY,\n" //
53+
+ " \"Id\" integer AUTO_INCREMENT CONSTRAINT id2 PRIMARY KEY,\n" //
5454
+ " \"Name\" varchar(255) NOT NULL,\n" //
5555
+ " \"Manual\" integer NULL\n" //
5656
+ ");";

0 commit comments

Comments
 (0)