diff options
Diffstat (limited to 'src/Components')
-rw-r--r-- | src/Components/JoinKeyword.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Components/JoinKeyword.php b/src/Components/JoinKeyword.php index 2a7693e..224e802 100644 --- a/src/Components/JoinKeyword.php +++ b/src/Components/JoinKeyword.php @@ -38,6 +38,7 @@ class JoinKeyword extends Component 'LEFT OUTER JOIN' => 'LEFT', 'RIGHT JOIN' => 'RIGHT', 'RIGHT OUTER JOIN' => 'RIGHT', + 'STRAIGHT_JOIN' => 'STRAIGHT', ); /** @@ -160,7 +161,7 @@ class JoinKeyword extends Component { $ret = array(); foreach ($component as $c) { - $ret[] = (($c->type === 'JOIN') ? 'JOIN ' : ($c->type . ' JOIN ')) + $ret[] = array_search($c->type, static::$JOINS) . ' ' . $c->expr . ' ON ' . Condition::build($c->on); } return implode(' ', $ret); |