1--TEST--
2ibase_trans(): Basic operations
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7
8require("interbase.inc");
9
10$x = ibase_connect($test_base);
11
12$trans = ibase_trans(IBASE_DEFAULT, $x);
13$sth = ibase_prepare($trans, 'INSERT INTO test1 VALUES (?, ?)');
14
15$res = ibase_execute($sth, 100, 100);
16var_dump($res);
17
18ibase_commit($trans);
19
20$rs = ibase_query($x, 'SELECT * FROM test1 WHERE i = 100');
21var_dump(ibase_fetch_assoc($rs));
22
23ibase_free_query($sth);
24unset($res);
25
26?>
27--EXPECT--
28int(1)
29array(2) {
30  ["I"]=>
31  int(100)
32  ["C"]=>
33  string(3) "100"
34}
35