[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3701?page=c...
]
Steve Ebersole commented on HHH-3701:
-------------------------------------
I've gone ahead and committed the function changes needed to support trim on sybase
into trunk, 3.3 and 3.2.
Gail, when you are done refactoring the Sybase dialects there is a one-line change you
will need to make to have those dialects use this properly. For trim function
registration you'll need a line like this:
registerFunction( "trim", new AnsiTrimEmulationFunction(
AnsiTrimEmulationFunction.LTRIM, AnsiTrimEmulationFunction.RTRIM, "str_replace"
) );
the current sybase dialect has:
registerFunction( "trim", new SQLFunctionTemplate( Hibernate.STRING,
"ltrim(rtrim(?1))") );
SQL function "trim" is not available in Sybase Dialect
------------------------------------------------------
Key: HHH-3701
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3701
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.2.x
Environment: Sybase ASE 15
Reporter: Juraci Paixao Krohling
Assignee: Steve Ebersole
Fix For: 3.2.x, 3.3.x, 3.4
The current AnsiTrimEmulationFunction doesn't handles the "replace"
function properly for Sybase, as it should use "str_replace" instead of
"replace", so, AnsiTrimEmulationFunction needs to be aware of this, or a new
class based on it should be developed.
--
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