summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/define2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8/tests/define2.phpt')
-rw-r--r--ext/oci8/tests/define2.phpt13
1 files changed, 10 insertions, 3 deletions
diff --git a/ext/oci8/tests/define2.phpt b/ext/oci8/tests/define2.phpt
index 7b1965b4a1..f841efad04 100644
--- a/ext/oci8/tests/define2.phpt
+++ b/ext/oci8/tests/define2.phpt
@@ -5,10 +5,17 @@ Test oci_define_by_name types
--FILE--
<?php
-require dirname(__FILE__)."/connect.inc";
+require(dirname(__FILE__)."/connect.inc");
-$stmt = oci_parse($c, "create table phptestrawtable( id number(10), fileimage raw(1000))");
-oci_execute($stmt);
+$stmtarray = array(
+ "drop table phptestrawtable",
+ "create table phptestrawtable( id number(10), fileimage raw(1000))"
+);
+
+foreach ($stmtarray as $stmt) {
+ $s = oci_parse($c, $stmt);
+ @oci_execute($s);
+}
$stmt = oci_parse ($c, "insert into phptestrawtable (id, fileimage) values (:id, :fileimage)");
$i=1;