diff options
author | FH <FH3095@users.noreply.github.com> | 2018-02-03 20:20:28 +0100 |
---|---|---|
committer | FH3095 <FH3095@users.noreply.github.com> | 2018-02-03 21:06:12 +0100 |
commit | 4577404fc2a389b6c3294ae97aa285e838057f0f (patch) | |
tree | 505299652508f2ff0cb21142220ca45e013d6a01 /phpBB/phpbb/db | |
parent | f29784e288a45a05a5a6953217c6e2c0a0ed352a (diff) | |
download | forums-4577404fc2a389b6c3294ae97aa285e838057f0f.tar forums-4577404fc2a389b6c3294ae97aa285e838057f0f.tar.gz forums-4577404fc2a389b6c3294ae97aa285e838057f0f.tar.bz2 forums-4577404fc2a389b6c3294ae97aa285e838057f0f.tar.xz forums-4577404fc2a389b6c3294ae97aa285e838057f0f.zip |
[ticket/15520] sql_build_query build subquery
Fix for the building of subqueries
in sql_build_query
PHPBB3-15520
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r-- | phpBB/phpbb/db/driver/driver.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php index 5851469806..a36ce8c0d7 100644 --- a/phpBB/phpbb/db/driver/driver.php +++ b/phpBB/phpbb/db/driver/driver.php @@ -903,9 +903,10 @@ abstract class driver implements driver_interface // Subquery with {left hand} {operator} {compare kind} {SELECT Kind } {Sub Query} - $condition = $condition[self::LEFT_STMT] . ' ' . $condition[self::COMPARE_OP] . ' ' . $condition[self::SUBQUERY_OP] . ' ( '; - $condition .= $this->sql_build_query($condition[self::SUBQUERY_SELECT_TYPE], $condition[self::SUBQUERY_BUILD]); - $condition .= ' )'; + $result = $condition[self::LEFT_STMT] . ' ' . $condition[self::COMPARE_OP] . ' ' . $condition[self::SUBQUERY_OP] . ' ( '; + $result .= $this->sql_build_query($condition[self::SUBQUERY_SELECT_TYPE], $condition[self::SUBQUERY_BUILD]); + $result .= ' )'; + $condition = $result; break; |