We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2626f commit 064ba17Copy full SHA for 064ba17
ext/pdo/tests/bug65946.phpt
@@ -16,8 +16,7 @@ $db = PDOTest::factory();
16
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
17
$db->exec('CREATE TABLE test(id int)');
18
$db->exec('INSERT INTO test VALUES(1)');
19
-$db->exec('INSERT INTO test VALUES(2)');
20
-$stmt = $db->prepare('SELECT * FROM testtable LIMIT :limit');
+$stmt = $db->prepare('SELECT * FROM test LIMIT :limit');
21
$stmt->bindValue('limit', 1, PDO::PARAM_INT);
22
if(!($res = $stmt->execute())) var_dump($stmt->errorInfo());
23
@@ -28,6 +27,6 @@ array(1) {
28
27
[0]=>
29
array(1) {
30
["id"]=>
31
- string(1) "2"
+ string(1) "1"
32
}
33
0 commit comments