summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/fetch.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8/tests/fetch.phpt')
-rw-r--r--ext/oci8/tests/fetch.phpt24
1 files changed, 2 insertions, 22 deletions
diff --git a/ext/oci8/tests/fetch.phpt b/ext/oci8/tests/fetch.phpt
index 520632494..e48aeefd8 100644
--- a/ext/oci8/tests/fetch.phpt
+++ b/ext/oci8/tests/fetch.phpt
@@ -17,23 +17,7 @@ $stmtarray = array(
"insert into fetch_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,11 +42,7 @@ $stmtarray = array(
"drop table fetch_tab"
);
-foreach ($stmtarray as $stmt) {
- $s = oci_parse($c, $stmt);
- oci_execute($s);
-}
-
+oci8_test_sql_execute($c, $stmtarray);
echo "Done\n";
?>