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:
Catalina Wei 2008-01-10 06:55:17 +00:00
parent d2264b92bb
commit b013b6fd4a
1 changed files with 4 additions and 0 deletions

View File

@ -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, "