Files
Nim/lib/impure
Leonardo Cecchi dd8192fc1d Fix ODBC SQL Error string decoding (#10207) [backport]
ODBC Errors were presented to the users as a sequence of characters.
I.e.:

    >test_oracle.exe

    Error: ['H', 'Y', '0', '0', '0', '\x00', '\x00', ...]

    test_oracle.nim(15)      test_oracle
    test_oracle.nim(8)       test_oracle
    db_odbc.nim(534)         open
    db_odbc.nim(168)         dbError
    Error: unhandled exception: ODBC Error [DbError]

This patch fix the string decoding, creating a real string:

    >test_oracle.exe

    Error: HY000 [Oracle][ODBC][Ora]ORA-12541: TNS:no listener

    test_oracle.nim(15)      test_oracle
    test_oracle.nim(8)       test_oracle
    db_odbc.nim(534)         open
    db_odbc.nim(168)         dbError
    Error: unhandled exception: ODBC Error [DbError]

(cherry picked from commit b7be67349b)
2019-01-14 09:15:17 +01:00
..
2018-08-13 12:29:03 +02:00
2018-08-14 21:15:03 +02:00
2018-08-14 21:15:03 +02:00
2018-11-01 17:47:10 +01:00
2015-03-12 23:40:58 +00:00
2015-03-12 23:40:58 +00:00
2018-11-01 17:37:20 +01:00