diff options
author | Christopher Jones <sixd@php.net> | 2011-06-10 19:16:35 +0000 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2011-06-10 19:16:35 +0000 |
commit | 1c35a1926b8bf61c5e00b12d237b90d412a54daf (patch) | |
tree | 418eedf5302e83b593f47e6ad97565304458078a /ext/oci8/tests/prefetch.phpt | |
parent | 16b744d2d4d9dd66edb4248cfc30b70eea85809a (diff) | |
download | php-git-1c35a1926b8bf61c5e00b12d237b90d412a54daf.tar.gz |
Add new OCI8 tests. Refactor skipifs. Sync 5.3/5.4/trunk branches
Diffstat (limited to 'ext/oci8/tests/prefetch.phpt')
-rw-r--r-- | ext/oci8/tests/prefetch.phpt | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/ext/oci8/tests/prefetch.phpt b/ext/oci8/tests/prefetch.phpt index 26762601df..b163a89e94 100644 --- a/ext/oci8/tests/prefetch.phpt +++ b/ext/oci8/tests/prefetch.phpt @@ -17,23 +17,7 @@ $stmtarray = array( "insert into prefetch_tab (id, value) values (1,1)", ); -foreach ($stmtarray as $stmt) { - $s = oci_parse($c, $stmt); - $r = @oci_execute($s); - if (!$r) { - $m = oci_error($s); - if (!in_array($m['code'], array( // ignore expected errors - 942 // table or view does not exist - ))) { - echo $stmt . PHP_EOL . $m['message'] . PHP_EOL; - } - } -} - -foreach ($stmtarray as $stmt) { - $s = oci_parse($c, $stmt); - oci_execute($s); -} +oci8_test_sql_execute($c, $stmtarray); // Run Test @@ -58,10 +42,7 @@ $stmtarray = array( "drop table prefetch_tab" ); -foreach ($stmtarray as $stmt) { - $s = oci_parse($c, $stmt); - oci_execute($s); -} +oci8_test_sql_execute($c, $stmtarray); echo "Done\n"; ?> |