I am playing with IBDAC 5.6.19 for RAD Studio 10.
If I do IBCConnection1.ExecSQL with stringparams like that:
Code: Select all
IBCConnection1.Open;
IBCConnection1.ExecSQL('select * from rdb$database where rdb$database.rdb$security_class = :rdb$text', ['asdf']);
IBCConnection1.Close;
If I do this with a IBCQuery-Object it works:Dynamic SQL Error
SQL error code = -303
arithmetic exception, numeric overflow, or string truncation
string right truncation
Code: Select all
IBCConnection1.Open;
IBCQuery1.sql.Text := 'select * from rdb$database where rdb$database.rdb$security_class = :text';
IBCQuery1.ParamByName('text').AsString := 'ASD';
IBCQuery1.ExecSQL;
IBCQuery1.Close;
IBCConnection1.Close;
What do I wrong?
Regards, Jan