[hibernate-issues] [Hibernate-JIRA] Created: (HHH-1984) DB2 390/zOS dialect getCurrentTimestampSelectString

Brindl Ronald (JIRA) noreply at atlassian.com
Tue Aug 8 04:23:18 EDT 2006


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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list