Community
Participate
Working Groups
The test org.eclipse.persistence.testing.tests.queries.report.Scenario2_2c executes a query with a numeric constant in the select list. The expected data type depends on the database platform, so the test should be modified to cover SAP HANA Database as well. On SAP HANA Database the constant is returned as a java.lang.Long object. I'll attach a patch containing the adapted test.
Created attachment 218256 [details] Patch containing the adapted tests
Created attachment 220966 [details] Patch containing the modified test - git version I replaced the old svn patch with a file created by the "git format-patch" command.
For some reason my patches produce whitespace errors. I could still apply the patch using the command "git apply --whitespace=fix <patch file>" - at least I hope that this does what I want it to do...
Changes checked in
There has been a change in the JDBC driver for SAP HANA database: Up to driver version 1.00.35, a Long is returned for numeric constants in the result set. The driver version is returned as "1.0" by the DatabaseMetaData object, independent of the actual version. Starting from driver version 1.00.36, the driver version is correctly maintained, and an Integer is returned instead for numeric constants. The test org.eclipse.persistence.testing.tests.queries.report.Scenario2_2c needs to be changed to reflect the changed driver behavior.
Here is a patched version: https://github.com/sabineheider/eclipselink.runtime/commit/5c214dc2db6de24ae4f23efbd9cfd20028128cbb I assert that I: - authored 100% the content I am contributing - have the rights to donate the content to Eclipse - contribute the content under the EPL
The previous commit has been tested with HANA and MySQL.
30f1f790f083618265903a3eec7774a86af863a6 Fix checked in Reviewed by: Tom Ware - reviewed user submitted fix Tested with Build -> change only affects HANA
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink