mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:19:27 +02:00
* Added support for ftMemo-params in TSQLite3Conn
git-svn-id: trunk@16855 -
This commit is contained in:
parent
cc10ab57ab
commit
2ba53fb6d6
@ -181,10 +181,11 @@ begin
|
||||
do1:= P.asfloat;
|
||||
checkerror(sqlite3_bind_double(fstatement,I,do1));
|
||||
end;
|
||||
ftstring: begin
|
||||
str1:= p.asstring;
|
||||
checkerror(sqlite3_bind_text(fstatement,I,pcharstr(str1), length(str1),@freebindstring));
|
||||
end;
|
||||
ftstring,
|
||||
ftmemo: begin // According to SQLite documentation, CLOB's (ftMemo) have the Text affinity
|
||||
str1:= p.asstring;
|
||||
checkerror(sqlite3_bind_text(fstatement,I,pcharstr(str1), length(str1),@freebindstring));
|
||||
end;
|
||||
ftblob: begin
|
||||
str1:= P.asstring;
|
||||
checkerror(sqlite3_bind_blob(fstatement,I,pcharstr(str1), length(str1),@freebindstring));
|
||||
|
Loading…
Reference in New Issue
Block a user