[patch_done] -> CheckSQLiteError (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] -> CheckSQLiteError (add support unicode)

Post by mariuszekpl »

is

Code: Select all

  if ErrorMessage <> nil then
  begin
    Error := Trim(StrPas(ErrorMessage));
    PlainDriver.FreeMem(ErrorMessage);
  end
should be

Code: Select all

  if ErrorMessage <> nil then
  begin
  {$IFDEF ZEOS_FULL_UNICODE}
    Error := trim(UTF8ToUnicodeString(ErrorMessage));
  {$ELSE}
    Error := Trim(StrPas(ErrorMessage));
  {$ENDIF}
    PlainDriver.FreeMem(ErrorMessage);
  end
Last edited by mariuszekpl on 30.11.2008, 19:23, edited 1 time in total.
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. 526.
Locked