- Kirankumar Chavadi
- PowerBuilder
- Tuesday, 23 January 2024 05:51 AM UTC
I am trying to assign values to transaction properties as below
transaction l_tmp
l_tmp = CREATE transaction
l_tmp.DBParm = arg_trans.DBParm
l_tmp.SQLErrText= arg_trans.SQLErrText
l_tmp.SQLDBCode= arg_trans.SQLDBCode
I observe that l_tmp.SQLCode (not SQLDBCode) assigned with -1 where as arg_trans.SQLCode = 0 and not being assigned by code
and apart from DBParm value, SQLErrText and SQLDBCode values are not getting assigned to l_tmp
after executing above lines
l_tmp.SQLErrText= "Transaction not connected"
l_tmp.SQLDBCode= 0
where as arg_trans values are
arg_trans.SQLErrText = "some db error "
arg_trans.SQLDBCode = -1
why arg_trans values are not getting assigned to l_tmp?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.