diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-02-21 19:05:56 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-02-21 19:05:56 +0100 |
commit | 89e29bb8468d53f1fb98f70af4cdc346491aec7e (patch) | |
tree | ff85539a4fb8216d4b1a72fb11bc4766a60f5e5c /phpBB/phpbb | |
parent | eecff95ce17498e07bd3ebd3f216a97cf38f866e (diff) | |
parent | 4577404fc2a389b6c3294ae97aa285e838057f0f (diff) | |
download | forums-89e29bb8468d53f1fb98f70af4cdc346491aec7e.tar forums-89e29bb8468d53f1fb98f70af4cdc346491aec7e.tar.gz forums-89e29bb8468d53f1fb98f70af4cdc346491aec7e.tar.bz2 forums-89e29bb8468d53f1fb98f70af4cdc346491aec7e.tar.xz forums-89e29bb8468d53f1fb98f70af4cdc346491aec7e.zip |
Merge pull request #5118 from FH3095/patch-1
[ticket/15520] sql_build_query build subquery
Diffstat (limited to 'phpBB/phpbb')
-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; |