Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fd342b9

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

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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /