OCI_DEFAULT and OCI_COMMIT_ON_SUCCESS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tijs Verwest

    #1

    OCI_DEFAULT and OCI_COMMIT_ON_SUCCESS

    I found this on http://www.orafaq.com/faqphp.htm :

    When using the OCI Extension Module, PHP will commit whenever ociexecute()
    returns successfully. One can control this behaviour by specifying
    OCI_COMMIT_ON_S UCCESS (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_S UCCESS
    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...


  • Mladen Gogala

    #2
    Re: OCI_DEFAULT and OCI_COMMIT_ON_S UCCESS

    On Mon, 10 Apr 2006 00:08:38 +0200, Tijs Verwest wrote:
    [color=blue]
    > I found this on http://www.orafaq.com/faqphp.htm :
    >
    > When using the OCI Extension Module, PHP will commit whenever ociexecute()
    > returns successfully. One can control this behaviour by specifying
    > OCI_COMMIT_ON_S UCCESS (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_S UCCESS
    > 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...[/color]


    I responded to this on comp.databases. oracle.server. Please, crosspost,
    don't multipost.

    --
    大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


    Comment

    • Tijs Verwest

      #3
      Re: OCI_DEFAULT and OCI_COMMIT_ON_S UCCESS

      How do you cross post ?


      "Mladen Gogala" <gogala@sbcglob al.net> a écrit dans le message de news:
      pan.2006.04.10. 06.41.27.541919 @sbcglobal.net...[color=blue]
      > On Mon, 10 Apr 2006 00:08:38 +0200, Tijs Verwest wrote:
      >[color=green]
      >> I found this on http://www.orafaq.com/faqphp.htm :
      >>
      >> When using the OCI Extension Module, PHP will commit whenever
      >> ociexecute()
      >> returns successfully. One can control this behaviour by specifying
      >> OCI_COMMIT_ON_S UCCESS (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_S UCCESS
      >> 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...[/color]
      >
      >
      > I responded to this on comp.databases. oracle.server. Please, crosspost,
      > don't multipost.
      >
      > --
      > http://www.mgogala.com
      >[/color]


      Comment

      • Tim Van Wassenhove

        #4
        Re: OCI_DEFAULT and OCI_COMMIT_ON_S UCCESS

        On 2006-04-10, Tijs Verwest <stephane.volle t@bluewin.ch> wrote:[color=blue]
        > How do you cross post ?[/color]

        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 >

        Comment

        Working...