Skip to content

Commit b2eb7d0

Browse files
committed
Fix creation of series with catalog numbers on MySQL.
Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE NOT EXISTS( SELECT * FROM michel_catalog WHERE code = '1576' )' at line 1 Correction for f40fb3e commit.
1 parent 38ca2d4 commit b2eb7d0

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/main/resources/sql/gibbons_catalog_dao_queries.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ gibbons.create = \
22
INSERT \
33
INTO gibbons_catalog(code) \
44
SELECT :code AS code \
5+
FROM dual \
56
WHERE NOT EXISTS( \
67
SELECT * \
78
FROM gibbons_catalog \

src/main/resources/sql/michel_catalog_dao_queries.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ michel.create = \
22
INSERT \
33
INTO michel_catalog(code) \
44
SELECT :code AS code \
5+
FROM dual \
56
WHERE NOT EXISTS( \
67
SELECT * \
78
FROM michel_catalog \

src/main/resources/sql/scott_catalog_dao_queries.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ scott.create = \
22
INSERT \
33
INTO scott_catalog(code) \
44
SELECT :code AS code \
5+
FROM dual \
56
WHERE NOT EXISTS( \
67
SELECT * \
78
FROM scott_catalog \

src/main/resources/sql/yvert_catalog_dao_queries.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ yvert.create = \
22
INSERT \
33
INTO yvert_catalog(code) \
44
SELECT :code AS code \
5+
FROM dual \
56
WHERE NOT EXISTS( \
67
SELECT * \
78
FROM yvert_catalog \

0 commit comments

Comments
 (0)