Page 1 of 1

problem with AutoEncodeString

Posted: 28.02.2014, 01:13
by paweld
zeos 7.1.3a (tested on 7.1.2 and 7.2 alpha too)
Lazarus 1.0.14
connection: ClientCodePage=WIN1250, ControlsCodePage=UTF8, protocol=mssql

table contains field type varchar(5)
if database field value='Polka' then all it's ok, but if field value in database='Półka' then zeos query return 'Pół' (for 'Półką' return 'Pó')

problem only occurs when reading data

Best regards

Re: problem with AutoEncodeString

Posted: 01.03.2014, 12:14
by marsupilami
Hello paweld,

this s a bug in the dbc driver for dblib based drivers. The attached patch fixes this problem for me. Please note: I only tested this patch briefly and did not check for any consequences regarding the functionality for Sybase or FreeTDS.

Also you might consider to change to FreeTDS because the ntwdblib.dll is not supported by Microsoft anymore.

Best regards,

Jan

Re: problem with AutoEncodeString

Posted: 06.03.2014, 21:29
by paweld
Thank You very much. After patch apply it's ok. I must go back to 7.1.2 because in 7.1.3a on application close see error "Access violation".
FreeTDS it's ok, but connect with mssql server only on port 1433.

Best regards / Pozdrawiam
paweld