TDVT test cases are failing when using the Actian JDBC connector due to mismatching actual versus expected results caused by result values being padded with trailing spaces.
Note: This problem seems to only affect the Actian JDBC connector. The ODBC connector is unaffected since the results when using the ODBC connector returned are not padded even though the dialect translation is the same.
Example results excerpt showing differences before and after fix
Without Fix
With Fix
""12 "" ""17 "" ""18 "" ""2 ""
""12"" ""17"" ""18"" ""2""
Solution
The fix changes the dialect translation for these particular tests cases from using CAST ... CHAR to CAST ... VARCHAR for the JDBC connector. The ODBC connector dialect is also updated to match the JDBC connector although the change has no impact on the ODBC connector.
Summary of problem
TDVT test cases are failing when using the Actian JDBC connector due to mismatching actual versus expected results caused by result values being padded with trailing spaces.
The failing tests:
Note: This problem seems to only affect the Actian JDBC connector. The ODBC connector is unaffected since the results when using the ODBC connector returned are not padded even though the dialect translation is the same.
Example results excerpt showing differences before and after fix
Solution
The fix changes the dialect translation for these particular tests cases from using
CAST ... CHAR
toCAST ... VARCHAR
for the JDBC connector. The ODBC connector dialect is also updated to match the JDBC connector although the change has no impact on the ODBC connector.TDVT test results