summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-02-09 12:56:00 (GMT)
committerFelipe Pena <felipe@php.net>2009-02-09 12:56:00 (GMT)
commit16483720155914476371978cdf4881a43a8d7f94 (patch)
tree9c8061644f42529705a42ea039cf64d9b2fcd3b0 /ext/pdo_firebird
parentefdaaa3f592b85daa67e46291cb89422e106bd67 (diff)
downloadphp-16483720155914476371978cdf4881a43a8d7f94.tar.gz
- MFH: Fix test
Diffstat (limited to 'ext/pdo_firebird')
-rw-r--r--ext/pdo_firebird/tests/ddl.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_firebird/tests/ddl.phpt b/ext/pdo_firebird/tests/ddl.phpt
index 7709bb3..9a3ddd1 100644
--- a/ext/pdo_firebird/tests/ddl.phpt
+++ b/ext/pdo_firebird/tests/ddl.phpt
@@ -8,14 +8,14 @@ PDO_Firebird: DDL/transactions
require("testdb.inc");
$db = new PDO("firebird:dbname=$test_base",$user,$password) or die;
- $db->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_WARNING);
+ $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
$db->exec("CREATE TABLE ddl (id INT NOT NULL PRIMARY KEY, text BLOB SUB_TYPE 1)");
$db->exec("CREATE GENERATOR gen_ddl_id");
$db->exec("CREATE TRIGGER ddl_bi FOR ddl BEFORE INSERT AS
BEGIN IF (NEW.id IS NULL) THEN NEW.id=GEN_ID(gen_ddl_id,1); END");
- $db->setAttribute(PDO_ATTR_AUTOCOMMIT,0);
+ $db->setAttribute(PDO::ATTR_AUTOCOMMIT,0);
$db->beginTransaction();
var_dump($db->exec("INSERT INTO ddl (text) VALUES ('bla')"));