I'm trying to move the byte values for a CHAR(16), charset OCTETS from one table to another by using a parameterized INSERT statement and setting the blob value.
However, this raises a "SQLcode -303, internal error" on .Execute of the insert.
The simplest version to reproduce is:
Code: Select all
var b: TBytes;
begin
qrySrc.Open;
qryDest.Prepare;
while not qrySrc.EOF
do begin
b := qrySrc.Fields[0].AsBytes;
qryDest.Params[0].SetBlobData(b, Length(b));
qryDest.Execute;
qrySrc.Next;
end;
"qryDest" has an INSERT INTO mytable2 VALUES (:g)
How is this supposed to work? What's going on?
With regards,
Martijn Tonies
Upscene Productions