File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ require("testdb.inc");
14
14
$ dbh ->setAttribute (PDO ::ATTR_ERRMODE , PDO ::ERRMODE_WARNING );
15
15
16
16
$ dbh ->exec ("CREATE TABLE test_ddl (id INT NOT NULL PRIMARY KEY, text BLOB SUB_TYPE 1) " );
17
- $ dbh ->exec ("CREATE GENERATOR gen_ddl_id " );
18
- $ dbh ->exec ("CREATE TRIGGER ddl_bi FOR test_ddl BEFORE INSERT AS
19
- BEGIN IF (NEW.id IS NULL) THEN NEW.id=GEN_ID(gen_ddl_id ,1); END " );
17
+ $ dbh ->exec ("CREATE GENERATOR gen_test_ddl_id " );
18
+ $ dbh ->exec ("CREATE TRIGGER test_ddl_bi FOR test_ddl BEFORE INSERT AS
19
+ BEGIN IF (NEW.id IS NULL) THEN NEW.id=GEN_ID(gen_test_ddl_id ,1); END " );
20
20
21
21
$ dbh ->setAttribute (PDO ::ATTR_AUTOCOMMIT ,0 );
22
22
@@ -31,13 +31,15 @@ $dbh->commit();
31
31
32
32
unset($ dbh );
33
33
echo "done \n" ;
34
- - ?>
35
- -- CLEAN--
34
+ ?>
35
+ -CLEAN--
36
36
<?php
37
- require 'testdb.inc ' ;
37
+ require_once getenv ('REDIR_TEST_DIR ' ) . 'pdo_test.inc ' ;
38
+ require ("testdb.inc " );
38
39
@$ dbh ->exec ('DROP TABLE test_ddl ' );
39
- @$ dbh ->exec ('DROP GENERATOR gen_ddl_id ' );
40
- @$ dbh ->exec ('DROP TRIGGER ddl_bi ' );
40
+ @$ dbh ->exec ('DROP GENERATOR gen_test_ddl_id ' );
41
+ @$ dbh ->exec ('DROP TRIGGER test_ddl_bi ' );
42
+
41
43
?>
42
44
--EXPECT--
43
45
int(1)
You can’t perform that action at this time.
0 commit comments