SQLITE_STATIC -> SQLITE_TRANSIENT in BindText()
This commit is contained in:
1754
Source/SQLite3.pas
1754
Source/SQLite3.pas
File diff suppressed because it is too large
Load Diff
@@ -29,6 +29,10 @@
|
|||||||
}
|
}
|
||||||
unit SQLite3Utils;
|
unit SQLite3Utils;
|
||||||
|
|
||||||
|
{$IFDEF FPC}
|
||||||
|
{$MODE DELPHI}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$WARN SYMBOL_DEPRECATED OFF}
|
{$WARN SYMBOL_DEPRECATED OFF}
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ type
|
|||||||
procedure BindNull(const ParamName: WideString); overload;
|
procedure BindNull(const ParamName: WideString); overload;
|
||||||
procedure BindBlob(const ParamName: WideString; Data: Pointer; const Size: Integer); overload;
|
procedure BindBlob(const ParamName: WideString; Data: Pointer; const Size: Integer); overload;
|
||||||
procedure BindZeroBlob(const ParamName: WideString; const Size: Integer); overload;
|
procedure BindZeroBlob(const ParamName: WideString; const Size: Integer); overload;
|
||||||
procedure ClearBindings;
|
procedure ClearBindings;
|
||||||
|
|
||||||
function Step: Integer;
|
function Step: Integer;
|
||||||
|
|
||||||
@@ -295,7 +295,7 @@ var
|
|||||||
begin
|
begin
|
||||||
S := StrToUTF8(Value);
|
S := StrToUTF8(Value);
|
||||||
FOwnerDatabase.Check(
|
FOwnerDatabase.Check(
|
||||||
sqlite3_bind_text(FHandle, ParamIndex, PAnsiChar(S), Length(S), SQLITE_STATIC)
|
sqlite3_bind_text(FHandle, ParamIndex, PAnsiChar(S), Length(S), SQLITE_TRANSIENT)
|
||||||
);
|
);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user