Page 1 of 1

[patch_done] -> CheckSQLiteError (add support unicode)

Posted: 25.11.2008, 11:49
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

Posted: 25.11.2008, 22:23
by mdaems
SVN Rev. 526.