SQLITE_STATIC -> SQLITE_TRANSIENT in BindBlob()

This commit is contained in:
2012-10-08 01:46:19 +07:00
parent 8caeb0d233
commit 09d8674805
3 changed files with 1453 additions and 1453 deletions

View File

@@ -1,7 +1,7 @@
{ {
SQLite for Delphi and FreePascal/Lazarus SQLite for Delphi and FreePascal/Lazarus
Copyright 2010 Yury Plashenkov <plashenkov@gmail.com> Copyright 2010-2012 Yury Plashenkov <plashenkov@gmail.com>
http://www.indasoftware.com/sqlite/ http://www.indasoftware.com/sqlite/
SQLite is a software library that implements a self-contained, serverless, SQLite is a software library that implements a self-contained, serverless,

View File

@@ -1,7 +1,7 @@
{ {
SQLite for Delphi and FreePascal/Lazarus SQLite for Delphi and FreePascal/Lazarus
Copyright 2010 Yury Plashenkov <plashenkov@gmail.com> Copyright 2010-2012 Yury Plashenkov <plashenkov@gmail.com>
http://www.indasoftware.com/sqlite/ http://www.indasoftware.com/sqlite/
SQLite is a software library that implements a self-contained, serverless, SQLite is a software library that implements a self-contained, serverless,

View File

@@ -1,7 +1,7 @@
{ {
SQLite for Delphi and FreePascal/Lazarus SQLite for Delphi and FreePascal/Lazarus
Copyright 2010 Yury Plashenkov <plashenkov@gmail.com> Copyright 2010-2012 Yury Plashenkov <plashenkov@gmail.com>
http://www.indasoftware.com/sqlite/ http://www.indasoftware.com/sqlite/
SQLite is a software library that implements a self-contained, serverless, SQLite is a software library that implements a self-contained, serverless,
@@ -263,7 +263,7 @@ end;
procedure TSQLite3Statement.BindBlob(const ParamIndex: Integer; Data: Pointer; procedure TSQLite3Statement.BindBlob(const ParamIndex: Integer; Data: Pointer;
const Size: Integer); const Size: Integer);
begin begin
FOwnerDatabase.Check(sqlite3_bind_blob(FHandle, ParamIndex, Data, Size, SQLITE_STATIC)); FOwnerDatabase.Check(sqlite3_bind_blob(FHandle, ParamIndex, Data, Size, SQLITE_TRANSIENT));
end; end;
procedure TSQLite3Statement.BindDouble(const ParamIndex: Integer; procedure TSQLite3Statement.BindDouble(const ParamIndex: Integer;