summaryrefslogtreecommitdiff
path: root/ext/pdo
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo')
-rw-r--r--ext/pdo/tests/bug_52384.phpt10
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/pdo/tests/bug_52384.phpt b/ext/pdo/tests/bug_52384.phpt
index b6eac4fb11..45449fd93a 100644
--- a/ext/pdo/tests/bug_52384.phpt
+++ b/ext/pdo/tests/bug_52384.phpt
@@ -22,13 +22,7 @@ $n = null;
$lob = str_repeat('a',1000);
$dob = '1978-10-17';
-$errmode = $db->getAttribute(PDO::ATTR_ERRMODE);
-$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
-$db->exec("DROP table bug_52384");
-$db->setAttribute(PDO::ATTR_ERRMODE, $errmode);
-$db->exec("CREATE table bug_52384 (calories int, colour varchar(64), tf int, n int, lob varchar(255), dob varchar(255))");
-
-$sth = $db->prepare('SELECT 1 FROM bug_52384 WHERE calories=:calories AND colour=:colour AND tf=:tf AND n=:n AND lob=:lob AND dob=:dob');
+$sth = $db->prepare('SELECT 1 WHERE 1');
$sth->bindParam(':calories', $calories, PDO::PARAM_INT);
$sth->bindValue(':colour', $colour, PDO::PARAM_STR);
$sth->bindValue(':tf', $tf, PDO::PARAM_BOOL);
@@ -40,7 +34,7 @@ $sth->debugDumpParams();
unset($dbh);
?>
--EXPECT--
-SQL: [113] SELECT 1 FROM bug_52384 WHERE calories=:calories AND colour=:colour AND tf=:tf AND n=:n AND lob=:lob AND dob=:dob
+SQL: [16] SELECT 1 WHERE 1
Params: 6
Key: Name: [9] :calories
paramno=-1