ok... i will try to explain 1 more time.
In DB2, if you use a parameter marker in the SQL query, then DB2 WILL
'constraint the paramter value to the db column length constraint'. If you
dont use a parameter marker, then DB2 will NOT 'constraint the value to the
db column length '
cheers
Mario
joson yu
<yuqian...@gmail.
com> To
[email protected]
03/23/2010 11:04 cc
AM
Subject
Re: db2 -302 error
Please respond to
user-j...@ibatis.
apache.org
maybe i am not discribe clearly.
the parameter's length is longger than the column length .but the the same
sql. in the db2 client is fine,but use ibatis it throw exception.
the db constraint the column's lenth but don't constraint the condition
parameter's.but in ibatis ,it runs like it also constraint the parameter's.
i don't know does i show the problem clear.
2010/3/23 Mario Ds Briggs <[email protected]>
Hi Joson,
I guess you figured the error out yourself i.e. length of the parameter
value is > than the column length (30). It works fine in db2 client since
there you are not using a parameter
marker but have value as a literal inside the SQL statement string.
cheers
Mario joson yu <yuqian...@gmail.
com>
To [email protected]
03/23/2010 07:44
cc
AM
Subject Re: db2 -302
error Please respond to
user-j...@ibatis. apache.org
ps:in the sql the parameter should passed in with String that is longger
than 30.
2010/3/23 joson yu <[email protected]>