We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf5e3c commit 28a6551Copy full SHA for 28a6551
src/ClickHouseSQLParser.php
@@ -867,13 +867,15 @@ public function parseCreateTableSql($create_full)
867
return $eng_arr;
868
}
869
870
- $names = $parse_fields = [];
871
if (!empty($create_fields)) {
872
$fields_arr = $this->parseCreateFields($create_fields);
873
if (\is_array($fields_arr)) {
874
\extract($fields_arr);
875
876
+ if (!isset($names)) {
877
+ $names = $parse_fields = [];
878
+ }
879
return \array_merge(\compact(
880
'create_fn', //str First part of sql request (CREATE ...)
881
'table', //str
0 commit comments