summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird/tests/ddl.phpt
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/pdo_firebird/tests/ddl.phpt
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/pdo_firebird/tests/ddl.phpt')
-rw-r--r--ext/pdo_firebird/tests/ddl.phpt37
1 files changed, 0 insertions, 37 deletions
diff --git a/ext/pdo_firebird/tests/ddl.phpt b/ext/pdo_firebird/tests/ddl.phpt
deleted file mode 100644
index 7709bb3f07..0000000000
--- a/ext/pdo_firebird/tests/ddl.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-PDO_Firebird: DDL/transactions
---SKIPIF--
-<?php include("skipif.inc"); ?>
---FILE--
-<?php /* $Id$ */
-
- require("testdb.inc");
-
- $db = new PDO("firebird:dbname=$test_base",$user,$password) or die;
- $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->beginTransaction();
- var_dump($db->exec("INSERT INTO ddl (text) VALUES ('bla')"));
- var_dump($db->exec("UPDATE ddl SET text='blabla'"));
- $db->rollback();
-
- $db->beginTransaction();
- var_dump($db->exec("DELETE FROM ddl"));
- $db->commit();
-
- unset($db);
- echo "done\n";
-
-?>
---EXPECT--
-int(1)
-int(1)
-int(0)
-done