DB2 390/zOS dialect getCurrentTimestampSelectString
---------------------------------------------------
Key: HHH-1984
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1984
Project: Hibernate3
Type: Bug
Versions: 3.1.3
Environment: Appserver: WebSphere 6.1, OS: zLinux 390
db: DB2 8.1 on z/OS
Reporter: Brindl Ronald
the DB2390Dialect uses
public String getCurrentTimestampSelectString() {
return "values current timestamp";
}
for currentTimestampSelectString, which produces error -142 (The SQL statement is not
supported).
the correct method is:
public String getCurrentTimestampSelectString()
{
return "select current timestamp from sysibm.sysdummy1";
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira