diff options
Diffstat (limited to 'ext/oci8/tests/error.phpt')
| -rw-r--r-- | ext/oci8/tests/error.phpt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/oci8/tests/error.phpt b/ext/oci8/tests/error.phpt index 743820f90..7fedd0dda 100644 --- a/ext/oci8/tests/error.phpt +++ b/ext/oci8/tests/error.phpt @@ -1,17 +1,20 @@ --TEST-- -oci_error() +oci_error() error message for parsing error --SKIPIF-- -<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> +<?php +$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs: different error messages from TimesTen +require(dirname(__FILE__).'/skipif.inc'); +?> --FILE-- <?php require dirname(__FILE__)."/connect.inc"; if (!empty($dbase)) { - var_dump(oci_connect($user, $password, $dbase)); + var_dump(oci_connect($user, $password, $dbase)); } else { - var_dump(oci_connect($user, $password)); + var_dump(oci_connect($user, $password)); } var_dump($s = oci_parse($c, "WRONG SYNTAX")); @@ -25,13 +28,13 @@ echo "Done\n"; resource(%s) of type (oci8 connection) resource(%s) of type (oci8 statement) -Warning: oci_execute(): ORA-00900: invalid SQL statement in %s on line %d +Warning: oci_execute(): ORA-00900: %s in %s on line %d bool(false) array(4) { ["code"]=> int(900) ["message"]=> - string(32) "ORA-00900: invalid SQL statement" + string(%d) "ORA-00900: %s" ["offset"]=> int(0) ["sqltext"]=> |
