Connecting Tech Pros Worldwide Help | Site Map

Lock Table and auto commit

  #1  
Old November 17th, 2008, 05:05 AM
robert stearns
Guest
 
Posts: n/a
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?
  #2  
Old November 17th, 2008, 08:15 AM
Ram
Guest
 
Posts: n/a

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
  #3  
Old November 17th, 2008, 11:55 AM
Serge Rielau
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
lock escalation question db2group88@yahoo.com answers 3 November 12th, 2005 09:00 AM
why it is exclusive lock xixi answers 5 November 12th, 2005 07:14 AM
IX lock not released xixi answers 2 November 12th, 2005 05:39 AM
lock escalation xixi answers 8 November 12th, 2005 05:38 AM