cvs: pecl /pdo_ids/tests fvt_49872.phpt

From: Date: Fri, 17 Mar 2006 23:01:37 +0000
Subject: cvs: pecl /pdo_ids/tests fvt_49872.phpt
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-5489@lists.php.net to get a copy of this message
kfbombar Fri Mar 17 23:01:37 2006 UTC Added files: /pecl/pdo_ids/tests fvt_49872.phpt Log: Initial version http://cvs.php.net/viewcvs.cgi/pecl/pdo_ids/tests/fvt_49872.phpt?view=markup&rev=1.1 Index: pecl/pdo_ids/tests/fvt_49872.phpt +++ pecl/pdo_ids/tests/fvt_49872.phpt --TEST-- pdo_informix: Check the clearing of error codes --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php require_once('fvt.inc'); class Test extends FVTTest { public function runTest() { $this->connect(); try { /* Drop the test table, in case it exists */ $drop = 'DROP TABLE animals'; $result = $this->db->exec( $drop ); } catch( Exception $e ){} /* Create the test table */ $create = 'CREATE TABLE animals (id INTEGER)'; $result = $this->db->exec( $create ); $sql = "selec id from animals "; try { $stmt = $this->db->query($sql); } catch ( Exception $e) {} print_r($this->db->errorInfo()); $sql = "select id from animals "; $stmt = $this->db->query($sql); print_r($this->db->errorInfo()); $res = $stmt->fetch(); print_r($res); } } $testcase = new Test(); $testcase->runTest(); ?> --EXPECT-- Array ( [0] => 42000 [1] => -201 [2] => [Informix][Informix ODBC Driver][Informix]A syntax error has occurred. (SQLPrepare[-201] at /u/kfbombar/nacon/errorCode/informix_pdo/informix_driver.c:127) ) Array ( [0] => 00000 [1] => 0 [2] => ((null)[0] at (null):0) )

« previous php.pecl.cvs (#5489) next »