diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-08-19 10:22:38 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-08-19 10:27:52 +0200 |
commit | 25a8012220abbcafac709672188415f9bd6f8860 (patch) | |
tree | e3fb0c5b666877235611beb0a718ae36130c4582 /ext/oci8/tests/num.phpt | |
parent | 8792636b0110fe5d6a084ad8648b3a39421263bd (diff) | |
download | php-25a8012220abbcafac709672188415f9bd6f8860.tar.gz |
Imported Upstream version 5.3.7
Diffstat (limited to 'ext/oci8/tests/num.phpt')
-rw-r--r-- | ext/oci8/tests/num.phpt | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/ext/oci8/tests/num.phpt b/ext/oci8/tests/num.phpt index e9dc6a8ac..0fe85ccdd 100644 --- a/ext/oci8/tests/num.phpt +++ b/ext/oci8/tests/num.phpt @@ -14,23 +14,7 @@ $stmtarray = array( "create table num_tab (id number, value number)", ); -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 @@ -181,10 +165,7 @@ $stmtarray = array( "drop table num_tab" ); -foreach ($stmtarray as $stmt) { - $s = oci_parse($c, $stmt); - oci_execute($s); -} +oci8_test_sql_execute($c, $stmtarray); echo "Done\n"; |