diff options
author | Christopher Jones <sixd@php.net> | 2010-08-07 00:28:09 +0000 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2010-08-07 00:28:09 +0000 |
commit | 05be95c0bee8c215d813ea71e000fa0b76abaf86 (patch) | |
tree | e1f53f5490f30a7c83e79ad929797559deb359e2 /tests/exec_fetch.phpt | |
download | php-git-oci8-1.4.3.tar.gz |
Tagging the 1.4.3 releaseoci8-1.4.3
Diffstat (limited to 'tests/exec_fetch.phpt')
-rw-r--r-- | tests/exec_fetch.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/exec_fetch.phpt b/tests/exec_fetch.phpt new file mode 100644 index 0000000000..83aae69f7d --- /dev/null +++ b/tests/exec_fetch.phpt @@ -0,0 +1,24 @@ +--TEST-- +fetch after failed oci_execute() +--SKIPIF-- +<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> +--FILE-- +<?php + +require dirname(__FILE__).'/connect.inc'; + +$sql = "select 2 from nonex_dual"; +$stmt = oci_parse($c, $sql); + +var_dump(oci_execute($stmt)); +var_dump(oci_fetch_array($stmt)); + +echo "Done\n"; +?> +--EXPECTF-- +Warning: oci_execute(): ORA-00942: table or view does not exist in %s on line %d +bool(false) + +Warning: oci_fetch_array(): ORA-24374: define not done before fetch or execute and fetch in %s on line %d +bool(false) +Done |