Bug in TZReadOnlyQuery and TZQuery
Posted: 09.03.2010, 11:17
Hi,
I have a problem with zeos in Delphi 2010.
Environment:
Delphi 2010, Zeos 7 (SVN 794), PostgreSQL (latest 8.4)
I'm sorry for image but it's simplest for me:
Picture has upper and lower parts. In upper part we have connection to UTF8 database and in lower part WIN1250 database.
In both cases in DB connection properties we have set properties: codepage=... and client_encoding=..
Sample data is polish national signs.
Record with id = 1 was entered i outer software (EMS) but record with id = 3 was entered with ZUpdateSQL component (the same text as id = 1)
As you can see everything look OK when we have UTF8 database but there is a problem with WIN1250 encoding. There are 2 problems:
- TZReadOnlyQuery can't read correctly (outer entered data)
- TZUpdateSQL can't write correctly (own entered data) - but in the same time TZReadOnlyQuery read this data ok.
I know that solution is change DB encoding but for old projects it's not so simple solution for me.
Can anybody help ?
Regards:
Jaromir
I have a problem with zeos in Delphi 2010.
Environment:
Delphi 2010, Zeos 7 (SVN 794), PostgreSQL (latest 8.4)
I'm sorry for image but it's simplest for me:
Picture has upper and lower parts. In upper part we have connection to UTF8 database and in lower part WIN1250 database.
In both cases in DB connection properties we have set properties: codepage=... and client_encoding=..
Sample data is polish national signs.
Record with id = 1 was entered i outer software (EMS) but record with id = 3 was entered with ZUpdateSQL component (the same text as id = 1)
As you can see everything look OK when we have UTF8 database but there is a problem with WIN1250 encoding. There are 2 problems:
- TZReadOnlyQuery can't read correctly (outer entered data)
- TZUpdateSQL can't write correctly (own entered data) - but in the same time TZReadOnlyQuery read this data ok.
I know that solution is change DB encoding but for old projects it's not so simple solution for me.
Can anybody help ?
Regards:
Jaromir