[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3640) Some standard SQL functions are not implemented in Sybase

Juraci Paixao Krohling (JIRA) noreply at atlassian.com
Fri Dec 12 15:37:39 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31945#action_31945 ] 

Juraci Paixao Krohling commented on HHH-3640:
---------------------------------------------

Got it. It worked for bit_length and mod, but it failed for trim, as "replace" is called "str_replace" in Sybase. I'll have to work in AnsiTrimEmulationFunction to fix this. 

        replace( replace( ltrim( replace( replace( animal0_.description, ' ', '${space}$' ), '_', ' ' ) ), ' ', '_' ), '${space}$', ' ' )='cat'
21:30:09,611  WARN JDBCExceptionReporter:100 - SQL Error: 156, SQLState: ZZZZZ
21:30:09,612 ERROR JDBCExceptionReporter:101 - Incorrect syntax near the keyword 'replace'.

Also, I'll remove the "registerFunction" from SQLServerDialect to Sybase, as there's no need to keep them in both places (as SQLServerDialect extends SybaseDialect)



> Some standard SQL functions are not implemented in Sybase
> ---------------------------------------------------------
>
>                 Key: HHH-3640
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3640
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: testsuite
>         Environment: Sybase ASE 15.0.2
>            Reporter: Juraci Paixao Krohling
>            Assignee: Juraci Paixao Krohling
>         Attachments: ASTParserLoadingTest.java.diff
>
>
> Some standard SQL functions are not implemented in Sybase, like "mod" * , bit_length, trim. Thus, the tests which uses these functions needs to be evicted. 
> ASTParserLoadingTest, contains "trim(trailing '_' column) ... " , mod(x,y) and bit_length

-- 
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