Hi. I am a new Lazarus user, now trying migrate my hard project from Delphi
I have a problem while trying update text blob field by query with params. Field value in database stores incorrected.
I use ODBC connection, charset set as UTF8, charset in databse UTF8
Working code:
test.Clear;
test.sql.Text := 'update settings set text = ''1234'' where id = 1';
test.ExecSQL;
SQLTransaction.CommitRetaining;
Field text value is '1234';
if I try with parameter:
test.Clear;
test.sql.Text := 'update settings set text = :text where id = 1';
test.ParamByName('text').AsString := '1234';
test.ExecSQL;
SQLTransaction.CommitRetaining;
Field value is incorrect, additional characters are added. In each case different character
1234 stores as 1234, 123456 stores as 123456^ etc
Whats wrong ?
Thanks