Connecting Tech Pros Worldwide Forums | Help | Site Map

Lock Table and auto commit

robert stearns
Guest
 
Posts: n/a
#1: Nov 17 '08
When I use LOCK TABLE ... COMMIT, must I also use
odbc_autocommit(dbConn, FALSE)? In other words will auto commit
prematurely defeat the LOCK TABLE?

Ram
Guest
 
Posts: n/a
#2: Nov 17 '08

re: Lock Table and auto commit


On Nov 17, 10:04*am, robert stearns <rstearns1...@charter.netwrote:
Quote:
When I use LOCK TABLE ... COMMIT, must I also use
odbc_autocommit(dbConn, FALSE)? In other words will auto commit
prematurely defeat the LOCK TABLE?
Yes, a COMMIT will release all locks.

Best regards,
ram
Serge Rielau
Guest
 
Posts: n/a
#3: Nov 17 '08

re: Lock Table and auto commit


robert stearns wrote:
Quote:
When I use LOCK TABLE ... COMMIT, must I also use
odbc_autocommit(dbConn, FALSE)? In other words will auto commit
prematurely defeat the LOCK TABLE?
Yes, if the client drives a commit implicitly you're going nowhere :-)

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Closed Thread


Similar DB2 Database bytes