mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-11 12:16:38 +02: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:
@ -375,7 +375,9 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
|||||||
{
|
{
|
||||||
$db = $this->new_dbal();
|
$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);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
$row = $db->sql_fetchrow($result);
|
$row = $db->sql_fetchrow($result);
|
||||||
|
Reference in New Issue
Block a user