1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-23 19:45:10 +01:00

[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
This commit is contained in:
Andreas Fischer 2012-05-22 01:25:19 +02:00
parent 86fa185a1b
commit 7ec6254078

View File

@ -375,7 +375,9 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
{
$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);