@@ -4,13 +4,13 @@ Bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_
44pdo_mysql
55--SKIPIF--
66<?php
7- require_once (__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc ' );
7+ require_once (__DIR__ . DIRECTORY_SEPARATOR . 'inc ' . DIRECTORY_SEPARATOR . ' mysql_pdo_test.inc ' );
88MySQLPDOTest::skip ();
99?>
1010--FILE--
1111<?php
1212
13- require_once (__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc ' );
13+ require_once (__DIR__ . DIRECTORY_SEPARATOR . 'inc ' . DIRECTORY_SEPARATOR . ' mysql_pdo_test.inc ' );
1414 $ pdoDb = MySQLPDOTest::factory ();
1515
1616
@@ -27,13 +27,13 @@ MySQLPDOTest::skip();
2727 $ pdoDb ->setAttribute (PDO ::ATTR_EMULATE_PREPARES , false );
2828 $ pdoDb ->setAttribute (PDO ::ATTR_STRINGIFY_FETCHES , true );
2929
30- $ pdoDb ->query ('DROP TABLE IF EXISTS testz ' );
30+ $ pdoDb ->query ('DROP TABLE IF EXISTS test ' );
3131
32- $ pdoDb ->query ('CREATE TABLE testz (name VARCHAR(20) NOT NULL, value INT) ' );
32+ $ pdoDb ->query ('CREATE TABLE test (name VARCHAR(20) NOT NULL, value INT) ' );
3333
34- $ pdoDb ->query ("INSERT INTO testz VALUES ('myclass', 1), ('myclass2', 2), ('myclass', NULL), ('myclass3', NULL) " );
34+ $ pdoDb ->query ("INSERT INTO test VALUES ('myclass', 1), ('myclass2', 2), ('myclass', NULL), ('myclass3', NULL) " );
3535
36- $ stmt = $ pdoDb ->prepare ("SELECT * FROM testz " );
36+ $ stmt = $ pdoDb ->prepare ("SELECT * FROM test " );
3737
3838 var_dump ($ stmt ->setFetchMode (PDO ::FETCH_CLASS | PDO ::FETCH_CLASSTYPE | PDO ::FETCH_GROUP ));
3939 $ stmt ->execute ();
@@ -44,9 +44,8 @@ MySQLPDOTest::skip();
4444?>
4545--CLEAN--
4646<?php
47- require __DIR__ . '/mysql_pdo_test.inc ' ;
48- $ db = MySQLPDOTest::factory ();
49- $ db ->exec ('DROP TABLE IF EXISTS testz ' );
47+ require_once (__DIR__ . DIRECTORY_SEPARATOR . 'inc ' . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc ' );
48+ MySQLPDOTest::dropTestTable ();
5049?>
5150--EXPECTF--
5251bool(true)
0 commit comments