diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-05-22 01:25:19 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-05-22 01:25:19 +0200 |
commit | 7ec6254078e28e94410adb51cd95d5ea687ae39d (patch) | |
tree | 60cd64b4ef8f84f9e06576d6dc1ac9adb1e4408f /tests/dbal/select_test.php | |
parent | 86fa185a1ba4754b6c2dc9769b826aa9d57aa148 (diff) | |
download | forums-7ec6254078e28e94410adb51cd95d5ea687ae39d.tar forums-7ec6254078e28e94410adb51cd95d5ea687ae39d.tar.gz forums-7ec6254078e28e94410adb51cd95d5ea687ae39d.tar.bz2 forums-7ec6254078e28e94410adb51cd95d5ea687ae39d.tar.xz forums-7ec6254078e28e94410adb51cd95d5ea687ae39d.zip |
[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
Diffstat (limited to 'tests/dbal/select_test.php')
-rw-r--r-- | tests/dbal/select_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/dbal/select_test.php b/tests/dbal/select_test.php index 1b04450fcd..81cd13b006 100644 --- a/tests/dbal/select_test.php +++ b/tests/dbal/select_test.php @@ -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); |