Skip to content

Commit

Permalink
[ticket/10890] Fix test_sql_fetchrow_returns_false_when_empty() on MS…
Browse files Browse the repository at this point in the history
… and ORA.

Fix phpbb_dbal_select_test::test_sql_fetchrow_returns_false_when_empty() on
MSSQL and Oracle by specifying an existing table in the query.

PHPBB3-10890
  • Loading branch information
bantu committed May 21, 2012
1 parent 86fa185 commit 7ec6254
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/dbal/select_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ public function test_sql_fetchrow_returns_false_when_empty()
{
$db = $this->new_dbal();

$sql = 'SELECT * FROM (SELECT 1) AS TBL WHERE 1 = 0';
$sql = 'SELECT user_id
FROM phpbb_users
WHERE 1 = 0';
$result = $db->sql_query($sql);

$row = $db->sql_fetchrow($result);
Expand Down

0 comments on commit 7ec6254

Please sign in to comment.