From:             [EMAIL PROTECTED]
Operating system: Windows 98
PHP version:      4.0.4pl1
PHP Bug Type:     ODBC related
Bug description:  odbc_connect() acts like odbc_pconnect()

I think this may be intentional -- there was a comment that could have been to that 
effect in the code.  However, it has the side effect of breaking transaction 
management.  The code here is an approximation of the results that I was seeing -- I 
don't guarantee it will run, but you'll get the idea...

<?php
 
  $connection1 = odbc_connect( "X", "", "" );
  $connection2 = odbc_connect( "X", "", "" );

  odbc_exec( $connection1, "insert into Table values (1) );
  odbc_exec( $connection2, "insert into Table values (2) );

  odbc_commit( $connection1 );
  odbc_rollback( $connection2 ); 

  odbc_close( $connection1 );
  odbc_close( $connection2 );
?>

Table contains rows:
  1
  2


-- 
Edit Bug report at: http://bugs.php.net/?id=9662&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to