Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Transaction autocommit and stored procedure

$
0
0

I have a SP to create data for a report. Datawindow get data from this SP.

PB transaction autocommit=false when DW retrieves data by SP.

It's is fine. then I want code in SP to insert data like:

 

begin transaction

    insert into mytab (pub_id) values ("9999")

commit transaction

 

then run this PB app.  ex lock on this mytab is never released even there is commit in SP!!!

 

So looks like autocommit in PB transaction overwrite commit in SP code.

 

What I want is: when add insert into SP, how to commit this trans without touch pb code to change autocommit = true?


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>