Community
Participate
Working Groups
SQL Server does not offer TRIM. EclipseLink had a work around in place to use RTRIM(LTRIM() ) instead. A change in https://fisheye2.atlassian.com/changelog/eclipselink/?cs=6761 has removed the work around. This results in JPQL TRIM() not working against SQL Server
Created attachment 187877 [details] Suggested patch. Rolled back the code to use leftTrim(rightTrim, again. Also fixes in JUnitJPQLComplexTestSuite: introduced supportsStoredFunction method so that setup passes on SQLServer (which doesn't support stored functions); updated variableReferencedOnlyInParameterTest so that it now passes on SQLServer. That's done by excluding the qpql strings known not been supported by the db platform. For SQLSerfver those are: "SELECT TRIM(LEADING 'A' FROM e.firstName) FROM Employee e" and "SELECT TRIM(TRAILING 'A' FROM e.firstName) FROM Employee e"
Fixed in trunk rev.8902 and 2.2 revision: 8903
Checked into 2.1 trunk at revision: 9722
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink