[patch_done] CheckPostgreSQLError (add support unicode)

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] CheckPostgreSQLError (add support unicode)

Post by mariuszekpl »

Is

Code: Select all

    ErrorMessage := Trim(StrPas(PlainDriver.GetErrorMessage(Handle)))
Should be

Code: Select all

 {$IFDEF ZEOS_FULL_UNICODE}
    ErrorMessage := Trim(UTF8ToUnicodeString(StrPas(PlainDriver.GetErrorMessage(Handle))))
 {$ELSE}
    ErrorMessage := Trim(StrPas(PlainDriver.GetErrorMessage(Handle)))
 {$ENDIF}
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
olehs
Zeos Dev Team
Zeos Dev Team
Posts: 118
Joined: 09.11.2009, 21:05

Post by olehs »

The problem is back.

Code: Select all

    ErrorMessage := Trim(String(StrPas(PlainDriver.GetErrorMessage(Handle))))
Last edited by olehs on 26.07.2012, 20:48, edited 2 times in total.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

olehs,

thank you for your hint. Patchdone Rev.1600

Michael

Btw. do you know if all Postgre Messages are UTF8? Or have they also dependencies to the ClientEncoding?
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
olehs
Zeos Dev Team
Zeos Dev Team
Posts: 118
Joined: 09.11.2009, 21:05

Post by olehs »

EgonHugeist,

Yes, they depend on ClientEncoding.

Btw, there's bug in rev 1600.
You do not have the required permissions to view the files attached to this post.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

olehs,

all patches applyed. Rev. 1602

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked