Page 1 of 1

[patch_done] CheckPostgreSQLError (add support unicode)

Posted: 30.11.2008, 19:27
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}

Posted: 03.12.2008, 11:49
by mdaems
SVN Rev. 533

Posted: 26.07.2012, 18:35
by olehs
The problem is back.

Code: Select all

    ErrorMessage := Trim(String(StrPas(PlainDriver.GetErrorMessage(Handle))))

Posted: 26.07.2012, 20:46
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?

Posted: 26.07.2012, 21:28
by olehs
EgonHugeist,

Yes, they depend on ClientEncoding.

Btw, there's bug in rev 1600.

Posted: 27.07.2012, 08:48
by EgonHugeist
olehs,

all patches applyed. Rev. 1602

Michael