on 2023 Sep 25 9:29 AM
I use Powerbuilder 11.5
The SetTransObject method returns 1 even though the client's Ip is changed and the DB connection is not available.
Does the SetTransObject Method check the DB connection status?
Int li_settrans
li_settrans = dw_1.SetTransObject(SQLCA)
If li_settrans <> 1 Then
Disconnect using SQLCA;
n_connectservice lnv_connectserv
lnv_connectserv = Create using "n_connectservice"
If lnv_connectserv.of_ConnectDB ( ) <> 0 Then
Destroy lnv_connectserv
MessageBox("error","DB Reconnect failed. ~n[" + String(SQLCA.SQLErrText) + "]", StopSign!)
Else
gf_dw_conn(This)
End If
End If
Request clarification before answering.
User | Count |
---|---|
84 | |
29 | |
9 | |
9 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.