Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- OCI_DEFAULT and OCI_COMMIT_ON_SUCCESS
- Tijs Verwest
April 9, 2006, 10:08 pm
rate this thread
When using the OCI Extension Module, PHP will commit whenever ociexecute()
returns successfully. One can control this behaviour by specifying
OCI_COMMIT_ON_SUCCESS (the default) or OCI_DEFAULT as the second parameter
to the ociexecute() function call. OCI_DEFAULT can be used to prevent
statements from being auto-committed. The OCICommit() and OCIRollback()
functions can then be used to control the transaction.
But I don't see any difference between OCI_DEFAULT and OCI_COMMIT_ON_SUCCESS
both commit my insertions in the database. Can someone tell me what's the
difference between the two?
I use OCI_DEFAULT all the time and I never have to commit anything...
- Tim Van Wassenhove
April 11, 2006, 12:05 am
Re: OCI_DEFAULT and OCI_COMMIT_ON_SUCCESS
The first link i got after searching the web for "cross-post":
The rest of http://www.cs.tut.fi/~jkorpela/usenet/ seems like good
reading material too.
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be