mirror of https://github.com/apache/openjpa.git
OPENJPA-471 iSeries DB2 problem with using @GeneratedValue(strategy=GenerationType.IDENTITY)
or @GeneratedValue(strategy=GenerationType.SEQUENCE) git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@610697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d621aa765d
commit
0d3bc96fcb
|
@ -306,6 +306,10 @@ public class DB2Dictionary
|
|||
break;
|
||||
case db2ISeriesV5R3OrEarlier:
|
||||
case db2ISeriesV5R4OrLater:
|
||||
lastGeneratedKeyQuery = "SELECT IDENTITY_VAL_LOCAL() FROM "
|
||||
+ "SYSIBM.SYSDUMMY1";
|
||||
nextSequenceQuery = "SELECT NEXTVAL FOR {0} FROM "
|
||||
+ "SYSIBM.SYSDUMMY1";
|
||||
validationSQL = "SELECT DISTINCT(CURRENT TIMESTAMP) FROM "
|
||||
+ "QSYS2.SYSTABLES";
|
||||
sequenceSQL = "SELECT SEQUENCE_SCHEMA, "
|
||||
|
|
Loading…
Reference in New Issue