mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #5118 from FH3095/patch-1
[ticket/15520] sql_build_query build subquery
This commit is contained in:
commit
89e29bb846
1 changed files with 4 additions and 3 deletions
|
@ -903,9 +903,10 @@ abstract class driver implements driver_interface
|
||||||
|
|
||||||
// Subquery with {left hand} {operator} {compare kind} {SELECT Kind } {Sub Query}
|
// Subquery with {left hand} {operator} {compare kind} {SELECT Kind } {Sub Query}
|
||||||
|
|
||||||
$condition = $condition[self::LEFT_STMT] . ' ' . $condition[self::COMPARE_OP] . ' ' . $condition[self::SUBQUERY_OP] . ' ( ';
|
$result = $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]);
|
$result .= $this->sql_build_query($condition[self::SUBQUERY_SELECT_TYPE], $condition[self::SUBQUERY_BUILD]);
|
||||||
$condition .= ' )';
|
$result .= ' )';
|
||||||
|
$condition = $result;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue