[patch_done] -> CheckSQLiteError (add support unicode)
Posted: 25.11.2008, 11:49
is
should be
Code: Select all
if ErrorMessage <> nil then
begin
Error := Trim(StrPas(ErrorMessage));
PlainDriver.FreeMem(ErrorMessage);
end
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