|
@@ 153-155 (lines=3) @@
|
| 150 |
|
# there is an array of sub-elements before (!) the base_expr clause of the current element |
| 151 |
|
# so we go through the sub-elements and must come at the end |
| 152 |
|
$backtracking[] = $charPos; |
| 153 |
|
for ($i = 1; $i < count($parsed); ++$i) { |
| 154 |
|
$backtracking[] = false; # backtracking only after n base_expr! |
| 155 |
|
} |
| 156 |
|
} elseif ($key === 'sub_tree' && $parsed !== false) { |
| 157 |
|
# we prevent wrong backtracking on subtrees (too much array_pop()) |
| 158 |
|
# there is an array of sub-elements after(!) the base_expr clause of the current element |
|
@@ 160-162 (lines=3) @@
|
| 157 |
|
# we prevent wrong backtracking on subtrees (too much array_pop()) |
| 158 |
|
# there is an array of sub-elements after(!) the base_expr clause of the current element |
| 159 |
|
# so we go through the sub-elements and must not come back at the end |
| 160 |
|
for ($i = 1; $i < count($parsed); ++$i) { |
| 161 |
|
$backtracking[] = false; |
| 162 |
|
} |
| 163 |
|
} else { |
| 164 |
|
# move the current pos after the keyword |
| 165 |
|
# SELECT, WHERE, INSERT etc. |