We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0e3575 + 8cffc84 commit b02ed32Copy full SHA for b02ed32
1 file changed
MysqliDb.php
@@ -1225,7 +1225,9 @@ protected function _buildJoin()
1225
$joinStr = $joinTable;
1226
}
1227
1228
- $this->_query .= " " . $joinType . " JOIN " . $joinStr . " on " . $joinCondition;
+ $this->_query .= " " . $joinType . " JOIN " . $joinStr .
1229
+ (false === stripos('using', $joinCondition) ? " " : " on ")
1230
+ . $joinCondition;
1231
1232
1233
0 commit comments