From: ebine dot yutaka at servise dot jp
Operating system: Debian 4.1
PHP version: 5.2.3
PHP Bug Type: InterBase related
Bug description: Bug of transaction in interbase.
Description:
------------
'INSERT' after 'CREATE TABLE' doesn't work when the transaction is used.
I think that 'INSERT' can't see the table.
It doesn't work similarly even if various Isolation Level is passed.
I think that this is not a so recent problem.
php5.2.2, 5.2.1, 5.2.0, 5.1.x ... and operating systems are Ubuntu,
FreeBSD, MaxOS... etc.
Sorry, my poor english.
Reproduce code:
---------------
$conn = ibase_connect("localhost:/home/firebird/test.fdb", "user",
"password");
$trans = ibase_trans(IBASE_DEFAULT, $conn);
//$trans = ibase_trans(IBASE_WRITE|IBASE_CONCURRENCY|IBASE_WAIT, $conn);
//$trans = ibase_trans(IBASE_COMMITTED|IBASE_REC_VERSION, $conn);
ibase_query($trans, "CREATE TABLE test (id INTEGER)");
ibase_query($trans, "INSERT INTO test VALUES (1)");
ibase_commit($trans);
Expected result:
----------------
I think that these two query should succeed.
Actual result:
--------------
I received error message.
ibase_query(): Dynamic SQL Error SQL error code = -204 Table unknown TEST
At line 1, column 13.
But, the table was made.
--
Edit bug report at http://bugs.php.net/?id=41604&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41604&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41604&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41604&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41604&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41604&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41604&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41604&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41604&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41604&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41604&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41604&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41604&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41604&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41604&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41604&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41604&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41604&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41604&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41604&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41604&r=mysqlcfg