aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-05-22 01:25:19 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-05-22 01:25:19 +0200
commit7ec6254078e28e94410adb51cd95d5ea687ae39d (patch)
tree60cd64b4ef8f84f9e06576d6dc1ac9adb1e4408f /tests/dbal
parent86fa185a1ba4754b6c2dc9769b826aa9d57aa148 (diff)
downloadforums-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')
-rw-r--r--tests/dbal/select_test.php4
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);