We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2192c0e + 51b685e commit 2b5fe95Copy full SHA for 2b5fe95
1 file changed
system/Database/MySQLi/Builder.php
@@ -53,4 +53,24 @@ class Builder extends BaseBuilder
53
*/
54
protected $escapeChar = '`';
55
56
+ /**
57
+ * FROM tables
58
+ *
59
+ * Groups tables in FROM clauses if needed, so there is no confusion
60
+ * about operator precedence.
61
62
+ * Note: This is only used (and overridden) by MySQL.
63
64
+ * @return string
65
+ */
66
+ protected function _fromTables(): string
67
+ {
68
+ if ( ! empty($this->QBJoin) && count($this->QBFrom) > 1)
69
70
+ return '('.implode(', ', $this->QBFrom).')';
71
+ }
72
+
73
+ return implode(', ', $this->QBFrom);
74
75
76
}
0 commit comments