Annotation of embedaddon/php/ext/interbase/tests/ibase_trans_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ibase_trans(): Basic operations
3: --SKIPIF--
4: <?php include("skipif.inc"); ?>
5: --FILE--
6: <?php
7:
8: require("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);
16: var_dump($res);
17:
18: ibase_commit($trans);
19:
20: $rs = ibase_query($x, 'SELECT * FROM test1 WHERE i = 100');
21: var_dump(ibase_fetch_assoc($rs));
22:
23: ibase_free_query($sth);
24: unset($res);
25:
26: ?>
27: --EXPECT--
28: int(1)
29: array(2) {
30: ["I"]=>
31: int(100)
32: ["C"]=>
33: string(3) "100"
34: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>