summaryrefslogtreecommitdiff
path: root/ext/pdo
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@lerdorf.com>2013-11-09 09:46:43 -0800
committerRasmus Lerdorf <rasmus@lerdorf.com>2013-11-09 09:46:43 -0800
commitdf7321359e0c11a1de99285dee64c8e69ee28653 (patch)
treea5b1e24fe496faec0dbfd524661e1e7446ce3c1f /ext/pdo
parent915c428ba1006a144c4fca45e44631ec058a5074 (diff)
parent064ba179b15bda7566fa43297e2cee8033bc850f (diff)
downloadphp-git-df7321359e0c11a1de99285dee64c8e69ee28653.tar.gz
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: 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"
}
}