]> granicus.if.org Git - php/commitdiff
Remove test cases don't test distinct behavior
authorAdam Baratz <adambaratz@php.net>
Tue, 13 Sep 2016 17:09:41 +0000 (13:09 -0400)
committerAdam Baratz <adambaratz@php.net>
Tue, 13 Sep 2016 20:36:23 +0000 (16:36 -0400)
These cases are also incompatible with pdo_dblib. Removing is easier.

ext/pdo/tests/bug_38253.phpt

index e749970a5f7132565f2cbb057a04f14c8b2f240f..78519a0805810a893f25937f1f320733d1d0807f 100644 (file)
@@ -22,19 +22,8 @@ $stmt = $pdo->prepare ("SELECT * FROM test");
 $stmt->execute();
 var_dump($stmt->fetchAll());
 
-if ($pdo->getAttribute(PDO::ATTR_DRIVER_NAME) == 'oci') {
-    $type = "clob";
-} else if ($pdo->getAttribute(PDO::ATTR_DRIVER_NAME) == 'firebird') {
-    $type = 'BLOB SUB_TYPE TEXT';
-} else {
-    $type = "text";
-}
-
-$pdo->exec ("create table test2 (id integer primary key, n $type)");
-$pdo->exec ("INSERT INTO test2 (id, n) VALUES (1,'hi')");
-
 $pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_FUNC);
-$stmt = $pdo->prepare ("SELECT * FROM test2");
+$stmt = $pdo->prepare ("SELECT * FROM test");
 $stmt->execute();
 var_dump($stmt->fetchAll());