OPENJPA-700 DB2 lastGeneratedKeyQuery should use new syntax for db2UDBV82OrLater

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@688135 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2008-08-22 17:48:55 +00:00
parent 04c292c761
commit 322689a573
1 changed files with 4 additions and 0 deletions

View File

@ -289,6 +289,10 @@ public class DB2Dictionary
// platform specific settings
switch (db2ServerType) {
case db2UDBV82OrLater:
lastGeneratedKeyQuery = "SELECT IDENTITY_VAL_LOCAL() FROM "
+ "SYSIBM.SYSDUMMY1";
break;
case db2ZOSV8xOrLater:
// DB2 Z/OS
characterColumnSize = 255;