hdbc / hdbc-odbc

ODBC driver for HDBC
BSD 3-Clause "New" or "Revised" License
26 stars 34 forks source link

HDBC ODB errors on receiving 'wide character' data from MS SQL server #11

Closed hdb3 closed 9 years ago

hdb3 commented 11 years ago

error message like 'Database/HDBC/ODBC/Statement.hsc:347:8-47: Irrefutable pattern failed for pattern' occurs in simple test cases where underlying data has 'extended' characters. Simple hacking of the source showed that the unhandled case is an instance of 'BindColWString'.

I found this with both MS ODBC Client for Linux and FreeTDS drivers.

I will attempt to work around by restricting the client character set using FreeTDS.

I will consider attempting a fix if it is considered that the bug is 'genuine' and not a massive undertaking.

anton-dessiatov commented 9 years ago

Please check the latest version - it should have this issue fixed. I'll close the issue for now.

hdb3 commented 9 years ago

I don't any longer have the test environment for this case, so yes, you should close it.

rgds