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/branches/1.0.x@610697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d2264b92bb
commit
b013b6fd4a
|
@ -279,6 +279,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