1--TEST--
2PDO_OCI: Attribute: Set prefetch on connection
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
6require(dirname(__FILE__).'/../../pdo/tests/pdo_test.inc');
7PDOTest::skip();
8?>
9--FILE--
10<?php
11
12require(dirname(__FILE__) . '/../../pdo/tests/pdo_test.inc');
13
14$dbh = PDOTest::factory();
15
16echo "Test connect: (value is ignored & has no effect)\n";
17putenv('PDOTEST_ATTR='.serialize(array(PDO::ATTR_PREFETCH=>101)));
18$dbh = PDOTest::factory();
19
20echo "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();
26while ($r = $s->fetch()) {
27    echo $r[0] . "\n";
28}
29
30echo "Done\n";
31
32?>
33--EXPECT--
34Test connect: (value is ignored & has no effect)
35Test set: (value is ignored & has no effect)
36X
37Done
38