diff options
-rw-r--r-- | src/Components/IntoKeyword.php | 6 | ||||
-rw-r--r-- | src/Components/PartitionDefinition.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Components/IntoKeyword.php b/src/Components/IntoKeyword.php index 7a91064..5e4afcb 100644 --- a/src/Components/IntoKeyword.php +++ b/src/Components/IntoKeyword.php @@ -138,12 +138,12 @@ class IntoKeyword extends Component */ public static function build($component) { - if ($component->type === 'OUTFILE') { - return 'OUTFILE "' . $component->dest . '"'; - } else { + if ($component->dest instanceof Expression) { $columns = !empty($component->columns) ? '(' . implode(', ', $component->columns) . ')' : ''; return Expression::build($component->dest) . $columns; + } else { + return 'OUTFILE "' . $component->dest . '"'; } } } diff --git a/src/Components/PartitionDefinition.php b/src/Components/PartitionDefinition.php index c46252d..df6d3f6 100644 --- a/src/Components/PartitionDefinition.php +++ b/src/Components/PartitionDefinition.php @@ -71,7 +71,7 @@ class PartitionDefinition extends Component /** * The expression used to defined this partition. * - * @var Expression + * @var Expression|string */ public $expr; |