problem with AutoEncodeString

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
paweld
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 22.02.2012, 12:41

problem with AutoEncodeString

Post 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
Best regards
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: problem with AutoEncodeString

Post 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
You do not have the required permissions to view the files attached to this post.
paweld
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 22.02.2012, 12:41

Re: problem with AutoEncodeString

Post 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
Best regards
Post Reply