Dynamic SQL Error SQL error code =-303 internal error
Posted: Tue 30 Aug 2011 10:29
Hello,
I've got the error
Version: V3.60.0.24
Thank you for helping!
Michael
PS:
When I rename the parameter 'INFOMEMO' to 'INFOMEMOX' in the second call it works.
I've got the error
when I do the following:'Dynamic SQL Error SQL error code =-303 internal error'
Code: Select all
if not IBCTRANSACTION.Active then IBCTRANSACTION.StartTransaction;
DM.SP_TMP.SQL.Text:='update AUSLIEF set INFOMEMO=:INFOMEMO where ID7_ASL=:ID';
IBCQuery.ParamByName('INFOMEMO').AsMemo:='This ist a test'; //TextBlob
IBCQuery.ParamByName('ID').value:=12345;
IBCQuery.Execute;
IBCTRANSACTION.CommitRetaining;
if not IBCTRANSACTION.Active then IBCTRANSACTION.StartTransaction;
SQL.Text:='update ORDER_MEMO set MEMOTEXT=:INFOMEMO where ID_CLT=:ID_CLT AND ID_MNF=:ID_MNF AND SAISON=:SAISON';
with DM.SP_TMP do
IBCQuery.ParamByName('INFOMEMO').AsString:=MemoText; //VarChar(511)
IBCQuery.ParamByName('ID_CLT').AsInteger:=ID_CLT;
IBCQuery.ParamByName('ID_MNF').AsInteger:=ID_MNF;
IBCQuery.ParamByName('SAISON').AsString:=SAISON;
IBCQuery.Execute; //Here ERROR !!!!!
IBCTRANSACTION.CommitRetaining;Version: V3.60.0.24
Thank you for helping!
Michael
PS:
When I rename the parameter 'INFOMEMO' to 'INFOMEMOX' in the second call it works.