Permalink
Browse files

[ticket/10890] Fix test_sql_fetchrow_returns_false_when_empty() on MS…

… 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...
1 parent 86fa185 commit 7ec6254078e28e94410adb51cd95d5ea687ae39d @bantu bantu committed May 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/dbal/select_test.php
@@ -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);

0 comments on commit 7ec6254

Please sign in to comment.