Skip to content

Commit e27a058

Browse files
committed
Fix typo in sequence selection.
See spring-projects#2003 Original pull request: spring-projects#2005
1 parent eb25cc3 commit e27a058

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryIdGenerationIntegrationTests-h2.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ CREATE SEQUENCE simple_seq_seq START WITH 1;
99
CREATE TABLE PersistableSeq (ID BIGINT NOT NULL PRIMARY KEY, NAME VARCHAR(100));
1010
CREATE SEQUENCE persistable_seq_seq START WITH 1;
1111
CREATE TABLE PrimitiveIdSeq (ID BIGINT NOT NULL PRIMARY KEY, NAME VARCHAR(100));
12-
CREATE SEQUENCE primitive_seq_seq START WITH 1;
12+
CREATE SEQUENCE "primitive_seq_seq" START WITH 1;

spring-data-relational/src/main/java/org/springframework/data/relational/core/dialect/IdGeneration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ default boolean driverRequiresKeyColumnNames() {
6363
/**
6464
* Provides for a given id {@link SqlIdentifier} the String that is to be used for registering interest in the
6565
* generated value of that column.
66-
*
66+
*
6767
* @param id {@link SqlIdentifier} representing a column for which a generated value is to be obtained.
6868
* @return a String representing that column in the way expected by the JDBC driver.
6969
* @since 3.3
@@ -107,6 +107,6 @@ default String createSequenceQuery(SqlIdentifier sequenceName) {
107107
}
108108

109109
static String createSequenceQuery(String nameString) {
110-
return "SELECT NEXT VALUE FOR" + nameString;
110+
return "SELECT NEXT VALUE FOR " + nameString;
111111
}
112112
}

0 commit comments

Comments
 (0)