[patch_done] TZPostgreSQLResultSet.Open;

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
mariuszekpl
Senior Boarder
Senior Boarder
Posts: 54
Joined: 30.09.2008, 10:59

[patch_done] TZPostgreSQLResultSet.Open;

Post by mariuszekpl »

Is

Code: Select all

procedure TZPostgreSQLResultSet.Open;
...
      ColumnLabel := StrPas(FPlainDriver.GetFieldName(FQueryHandle, I));
Should be

Code: Select all

procedure TZPostgreSQLResultSet.Open;
...
    {$IFDEF ZEOS_FULL_UNICODE}
      ColumnLabel := UTF8ToUnicodeString(StrPas(FPlainDriver.GetFieldName(FQueryHandle, I)));
    {$ELSE}
      ColumnLabel := StrPas(FPlainDriver.GetFieldName(FQueryHandle, I));
    {$ENDIF}
In all databases with suport utf8 we can add UTF8ToUnicodeString function to decode Unicode field name
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

SVN Rev. 533
Image
Locked