mirror of https://github.com/apache/openjpa.git
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:
parent
04c292c761
commit
322689a573
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue