Skip to content

Commit 763fa33

Browse files
committed
ok
1 parent ce2f023 commit 763fa33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/tests/src/ClickHouseTableTypeTest.php
66
/doc/
77
/tmp/
8+
anyfile.txt.gz

src/ClickHouseSQLParser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ public function tableCreaterFnParser($sql) {
719719
. "{$pdbtb}{$aspat}{$oncpat})(?<{$crepar}>.*)#is";
720720

721721
$matches = $ret = [];
722-
$ans = \preg_match_all($sumpat, $sql, $matches);
722+
\preg_match_all($sumpat, $sql, $matches);
723723
if (!empty($matches[$crefn]) && !empty($matches[$crepar])) {
724724
foreach ($interesting_vars as $key) {
725725
$ret[$key] = \trim($matches[$key][0]);
@@ -755,7 +755,6 @@ public function parseCreateEngineSql($create_engine)
755755
return "Expected '$exp'" . (empty($engine[0]) ? '' : ", unexpected '{$engine[0]}'");
756756
}
757757
$engine = \trim($engine[1]);
758-
$tail = $eng_parr['tail'];
759758

760759
// parse *MergeTree engine parameters
761760
$date_field = $sampl = $primary_key = $granul = $ver = '';

0 commit comments

Comments
 (0)