sixd Thu Jun 5 23:27:41 2008 UTC
Modified files:
/php-src/ext/oci8/tests define2.phpt define3.phpt
Log:
Make tests interruptible; clean up tables at start
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/define2.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/oci8/tests/define2.phpt
diff -u php-src/ext/oci8/tests/define2.phpt:1.2
php-src/ext/oci8/tests/define2.phpt:1.3
--- php-src/ext/oci8/tests/define2.phpt:1.2 Tue May 27 14:30:37 2008
+++ php-src/ext/oci8/tests/define2.phpt Thu Jun 5 23:27:41 2008
@@ -5,10 +5,17 @@
--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;
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/define3.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/oci8/tests/define3.phpt
diff -u php-src/ext/oci8/tests/define3.phpt:1.2
php-src/ext/oci8/tests/define3.phpt:1.3
--- php-src/ext/oci8/tests/define3.phpt:1.2 Tue May 27 14:30:37 2008
+++ php-src/ext/oci8/tests/define3.phpt Thu Jun 5 23:27:41 2008
@@ -5,10 +5,17 @@
--FILE--
<?php
-require dirname(__FILE__)."/connect.inc";
+require(dirname(__FILE__)."/connect.inc");
-$stmt = oci_parse($c, "create table phpdefblobtable( id number(10), fileimage
blob)");
-oci_execute($stmt);
+$stmtarray = array(
+ "drop table phpdefblobtable",
+ "create table phpdefblobtable (id number(10), fileimage blob)"
+);
+
+foreach ($stmtarray as $stmt) {
+ $s = oci_parse($c, $stmt);
+ @oci_execute($s);
+}
// Load data
$stmt = oci_parse ($c, "insert into phpdefblobtable (id, fileimage) values
(:id, empty_blob()) returning fileimage into :fileimage");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php