cancel
Showing results for 
Search instead for 
Did you mean: 

SetTransObject dose not check DB Connect State?

lukas7703
Member
0 Kudos
157

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

Accepted Solutions (0)

Answers (0)