diff options
author | Felipe Pena <felipe@php.net> | 2009-02-09 11:57:44 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-02-09 11:57:44 +0000 |
commit | fcfcacefc99b7afe8f434462363278107b6de362 (patch) | |
tree | 6d90f930487775e19c114a1316247ce5dd1a9353 /ext/pdo_firebird/tests | |
parent | 4d8f18ce979b8ce9007079887f06a6a176c151b4 (diff) | |
download | php-git-fcfcacefc99b7afe8f434462363278107b6de362.tar.gz |
- MFH: Fixed test
Diffstat (limited to 'ext/pdo_firebird/tests')
-rw-r--r-- | ext/pdo_firebird/tests/execute.phpt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/pdo_firebird/tests/execute.phpt b/ext/pdo_firebird/tests/execute.phpt index 8975048325..3a759fc51b 100644 --- a/ext/pdo_firebird/tests/execute.phpt +++ b/ext/pdo_firebird/tests/execute.phpt @@ -11,9 +11,9 @@ ibase.timestampformat=%Y-%m-%d %H:%M:%S $db = new PDO("firebird:dbname=$test_base",$user,$password) or die; - var_dump($db->getAttribute(PDO_ATTR_CONNECTION_STATUS)); + var_dump($db->getAttribute(PDO::ATTR_CONNECTION_STATUS)); - $db->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_WARNING); + $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); $db->exec("CREATE TABLE ddl (id SMALLINT NOT NULL PRIMARY KEY, text VARCHAR(32), datetime TIMESTAMP DEFAULT '2000-02-12' NOT NULL)"); @@ -21,11 +21,13 @@ ibase.timestampformat=%Y-%m-%d %H:%M:%S $s = $db->prepare("SELECT * FROM ddl WHERE id=? FOR UPDATE"); - $s->bindParam(1,$id = 0); - $s->bindColumn("TEXT",$var = null); + $id = 0; + $s->bindParam(1,$id); + $var = null; + $s->bindColumn("TEXT",$var); $id = 1; $s->execute(); - $s->setAttribute(PDO_ATTR_CURSOR_NAME, "c"); + $s->setAttribute(PDO::ATTR_CURSOR_NAME, "c"); var_dump($id); |