File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,25 +8,25 @@ pdo_mysql
88require_once __DIR__ . '/inc/mysql_pdo_test.inc ' ;
99MySQLPDOTest::skip ();
1010?>
11- --XFAIL--
1211--FILE--
1312<?php
1413require_once __DIR__ . '/inc/mysql_pdo_test.inc ' ;
15- $ pdo = MySQLPDOTest::factory ();
14+ $ db = MySQLPDOTest::factory ();
1615
17- $ db ->exec ('CREATE TABLE test (bar JSON) ' );
18- $ db ->exec ('INSERT INTO test VALUES("[]") ' );
16+ $ db ->exec ('CREATE TABLE test_gh20122 (bar JSON) ' );
17+ $ db ->exec ('INSERT INTO test_gh20122 VALUES("[]") ' );
1918
20- $ stmt = $ db ->query ('SELECT * from test ' );
19+ $ stmt = $ db ->query ('SELECT * from test_gh20122 ' );
2120$ meta = $ stmt ->getColumnMeta (0 );
2221
2322// Note: JSON is an alias for LONGTEXT on MariaDB!
2423echo $ meta ['native_type ' ], "\n" ;
2524?>
2625--CLEAN--
2726<?php
28- require __DIR__ . '/mysql_pdo_test.inc ' ;
29- MySQLPDOTest::dropTestTable ();
27+ require_once __DIR__ . '/inc/mysql_pdo_test.inc ' ;
28+ $ pdo = MySQLPDOTest::factory ();
29+ $ pdo ->query ('DROP TABLE IF EXISTS test_gh20122 ' );
3030?>
3131--EXPECTF--
3232%r(JSON|LONGTEXT)%r
You can’t perform that action at this time.
0 commit comments