Right update sql failed
Posted: Mon 20 Jul 2009 12:16
I'm using sql query as follow:
update myTable set d_1=current_date, d_mod = current_timestamp, zapos = :zapos, MyMemo = (MyMemo || :TextToAdd) where nr = :nr
:zapos(VARCHAR[15])='Odbiór osobisty'
:TextToAdd(VARCHAR[27])='Towar odebrał: XXXX'
:nr(VARCHAR[10])='24899/09'
-----
It raise my application error like this
-- 2009-07-20 14:04:46:296 --
Error:
Dynamic SQL Error
SQL error code = -303
arithmetic exception, numeric overflow, or string truncation
-----
The same query with same parametres pasted in the IBExpert working fine.
I'm using IBDAC 3.0.0.3 --> TIBCQuery
Database is Firebird 2.1
MyMemo field is Varchar(4000)
I can't understand, what is wrong. Can anyone help me?
Mariusz
update myTable set d_1=current_date, d_mod = current_timestamp, zapos = :zapos, MyMemo = (MyMemo || :TextToAdd) where nr = :nr
:zapos(VARCHAR[15])='Odbiór osobisty'
:TextToAdd(VARCHAR[27])='Towar odebrał: XXXX'
:nr(VARCHAR[10])='24899/09'
-----
It raise my application error like this
-- 2009-07-20 14:04:46:296 --
Error:
Dynamic SQL Error
SQL error code = -303
arithmetic exception, numeric overflow, or string truncation
-----
The same query with same parametres pasted in the IBExpert working fine.
I'm using IBDAC 3.0.0.3 --> TIBCQuery
Database is Firebird 2.1
MyMemo field is Varchar(4000)
I can't understand, what is wrong. Can anyone help me?
Mariusz