summaryrefslogtreecommitdiff
path: root/ext/pdo
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@lerdorf.com>2013-11-09 09:45:52 -0800
committerRasmus Lerdorf <rasmus@lerdorf.com>2013-11-09 09:45:52 -0800
commit064ba179b15bda7566fa43297e2cee8033bc850f (patch)
tree859cefead20d59939d03ce48eb055a709e568256 /ext/pdo
parentcf2626f10c92709f8db44afa15fc09ec6a9d8b0c (diff)
downloadphp-git-064ba179b15bda7566fa43297e2cee8033bc850f.tar.gz
Fix broken test
Diffstat (limited to 'ext/pdo')
-rw-r--r--ext/pdo/tests/bug65946.phpt5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/pdo/tests/bug65946.phpt b/ext/pdo/tests/bug65946.phpt
index 30261d638a..1c4bd8d6c4 100644
--- a/ext/pdo/tests/bug65946.phpt
+++ b/ext/pdo/tests/bug65946.phpt
@@ -16,8 +16,7 @@ $db = PDOTest::factory();
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
$db->exec('CREATE TABLE test(id int)');
$db->exec('INSERT INTO test VALUES(1)');
-$db->exec('INSERT INTO test VALUES(2)');
-$stmt = $db->prepare('SELECT * FROM testtable LIMIT :limit');
+$stmt = $db->prepare('SELECT * FROM test LIMIT :limit');
$stmt->bindValue('limit', 1, PDO::PARAM_INT);
if(!($res = $stmt->execute())) var_dump($stmt->errorInfo());
if(!($res = $stmt->execute())) var_dump($stmt->errorInfo());
@@ -28,6 +27,6 @@ array(1) {
[0]=>
array(1) {
["id"]=>
- string(1) "2"
+ string(1) "1"
}
}