ParamByName in MySql5
Posted: 13.07.2010, 14:09
Hello
I want to set a MediumBlob field in a MySQL5 db. I use this code:
Now, in Zeos7 i get an error message:
Unsupported data type.
In the log of MySQL:
UPDATE table SET photo=? WHERE key=123
It seems like if adding parameters does not work. I tried it with a simple string field too, and i get the same errors.
Could you help me?
I want to set a MediumBlob field in a MySQL5 db. I use this code:
Code: Select all
ZQuery1.SQL.Text:='UPDATE table SET photo=:pic WHERE key=123';
ZQuery1.Params.ParamByName('pic').Assign(Image1.Picture.Graphic);
ZQuery1.ExecSQL;
Unsupported data type.
In the log of MySQL:
UPDATE table SET photo=? WHERE key=123
It seems like if adding parameters does not work. I tried it with a simple string field too, and i get the same errors.
Could you help me?