Annotation of embedaddon/php/ext/pdo_oci/tests/pdo_oci_attr_prefetch_1.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: PDO_OCI: Attribute: Set prefetch on connection
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
6: require(dirname(__FILE__).'/../../pdo/tests/pdo_test.inc');
7: PDOTest::skip();
8: ?>
9: --FILE--
10: <?php
11:
12: require(dirname(__FILE__) . '/../../pdo/tests/pdo_test.inc');
13:
14: $dbh = PDOTest::factory();
15:
16: echo "Test connect: (value is ignored & has no effect)\n";
17: putenv('PDOTEST_ATTR='.serialize(array(PDO::ATTR_PREFETCH=>101)));
18: $dbh = PDOTest::factory();
19:
20: echo "Test set: (value is ignored & has no effect)\n";
21: $dbh->setAttribute(PDO::ATTR_PREFETCH, 102);
22:
23: // Verify can fetch
24: $s = $dbh->prepare("select dummy from dual" );
25: $s->execute();
26: while ($r = $s->fetch()) {
27: echo $r[0] . "\n";
28: }
29:
30: echo "Done\n";
31:
32: ?>
33: --EXPECT--
34: Test connect: (value is ignored & has no effect)
35: Test set: (value is ignored & has no effect)
36: X
37: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>