Skip to content

Commit 064ba17

Browse files
committed
Fix broken test
1 parent cf2626f commit 064ba17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/pdo/tests/bug65946.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ $db = PDOTest::factory();
1616
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
1717
$db->exec('CREATE TABLE test(id int)');
1818
$db->exec('INSERT INTO test VALUES(1)');
19-
$db->exec('INSERT INTO test VALUES(2)');
20-
$stmt = $db->prepare('SELECT * FROM testtable LIMIT :limit');
19+
$stmt = $db->prepare('SELECT * FROM test LIMIT :limit');
2120
$stmt->bindValue('limit', 1, PDO::PARAM_INT);
2221
if(!($res = $stmt->execute())) var_dump($stmt->errorInfo());
2322
if(!($res = $stmt->execute())) var_dump($stmt->errorInfo());
@@ -28,6 +27,6 @@ array(1) {
2827
[0]=>
2928
array(1) {
3029
["id"]=>
31-
string(1) "2"
30+
string(1) "1"
3231
}
3332
}

0 commit comments

Comments
 (0)