Skip to content

Commit eba7584

Browse files
author
Martin Köditz
committed
Added check for correct order of transaction args based on issue #63.
1 parent 22b7fdb commit eba7584

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/ibase_trans_003.phpt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
ibase_trans(): Check order of link identifier and trans args
3+
--SKIPIF--
4+
<?php include("skipif.inc"); ?>
5+
--FILE--
6+
<?php
7+
8+
require("interbase.inc");
9+
10+
$db = ibase_connect($test_base);
11+
$tr = ibase_trans(IBASE_READ, $db) or die("Could not create transaction");
12+
@ibase_query($tr, "INSERT INTO test1 VALUES(1, 2)") or die("Could not insert");
13+
ibase_commit($tr) or die("Could not commit transaction");
14+
print "Finished OK\n";
15+
16+
unset($db);
17+
18+
?>
19+
--EXPECT--
20+
Could not insert

0 commit comments

Comments
 (0)