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;
|
||||
|
||||
{$IFDEF FPC}
|
||||
{$MODE DELPHI}
|
||||
{$ENDIF}
|
||||
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
|
||||
interface
|
||||
|
||||
@@ -99,7 +99,7 @@ type
|
||||
procedure BindNull(const ParamName: WideString); overload;
|
||||
procedure BindBlob(const ParamName: WideString; Data: Pointer; const Size: Integer); overload;
|
||||
procedure BindZeroBlob(const ParamName: WideString; const Size: Integer); overload;
|
||||
procedure ClearBindings;
|
||||
procedure ClearBindings;
|
||||
|
||||
function Step: Integer;
|
||||
|
||||
@@ -295,7 +295,7 @@ var
|
||||
begin
|
||||
S := StrToUTF8(Value);
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user