summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/cursor_bind_err.phpt
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/oci8/tests/cursor_bind_err.phpt
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/oci8/tests/cursor_bind_err.phpt')
-rw-r--r--ext/oci8/tests/cursor_bind_err.phpt48
1 files changed, 0 insertions, 48 deletions
diff --git a/ext/oci8/tests/cursor_bind_err.phpt b/ext/oci8/tests/cursor_bind_err.phpt
deleted file mode 100644
index 267c4d94fb..0000000000
--- a/ext/oci8/tests/cursor_bind_err.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-binding a cursor (with errors)
---SKIPIF--
-<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
---FILE--
-<?php
-
-require dirname(__FILE__)."/connect.inc";
-require dirname(__FILE__)."/create_table.inc";
-
-$insert_sql = "INSERT INTO ".$schema.$table_name." (id, value) VALUES (1,1)";
-
-if (!($s = oci_parse($c, $insert_sql))) {
- die("oci_parse(insert) failed!\n");
-}
-
-for ($i = 0; $i<3; $i++) {
- if (!oci_execute($s)) {
- die("oci_execute(insert) failed!\n");
- }
-}
-
-if (!oci_commit($c)) {
- die("oci_commit() failed!\n");
-}
-
-$sql = "select CURSOR(select * from ".$schema.$table_name.") into :cursor from dual";
-$stmt = oci_parse($c, $sql);
-
-$cursor = oci_new_cursor($c);
-oci_bind_by_name($stmt, ":cursor", $cursor, -1, OCI_B_CURSOR);
-
-oci_execute($stmt);
-
-oci_execute($cursor);
-var_dump(oci_fetch_assoc($cursor));
-
-require dirname(__FILE__)."/drop_table.inc";
-
-echo "Done\n";
-
-?>
---EXPECTF--
-Warning: oci_bind_by_name(): ORA-01036: illegal variable name/number in %s on line %d
-
-Warning: oci_fetch_assoc(): ORA-24338: statement handle not executed in %s on line %d
-bool(false)
-Done