PMCORE-2296 Suggested control, query with left join is not working

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-10-23 20:54:57 -04:00
parent 8fd35ed72a
commit 9def653c91

View File

@@ -876,8 +876,6 @@ EOREGEX;
} }
break; break;
} }
$shouldItContinue = false;
switch ($upper) { switch ($upper) {
case 'AS': case 'AS':
$token_count ++; $token_count ++;
@@ -888,7 +886,6 @@ EOREGEX;
++ $n; ++ $n;
} }
$shouldItContinue = true;
break; break;
case 'INDEX': case 'INDEX':
if ($token_category == 'CREATE') { if ($token_category == 'CREATE') {
@@ -910,12 +907,10 @@ EOREGEX;
case 'OUTER': case 'OUTER':
# $expression .= $token; # $expression .= $token;
$token_count ++; $token_count ++;
$shouldItContinue = true;
break; break;
case 'FOR': case 'FOR':
$token_count ++; $token_count ++;
$skip_next = true; $skip_next = true;
$shouldItContinue = true;
break; break;
case 'LEFT': case 'LEFT':
case 'RIGHT': case 'RIGHT':
@@ -971,7 +966,6 @@ EOREGEX;
break; break;
default: default:
if ($token === false || empty( $token ) || $token === "") { if ($token === false || empty( $token ) || $token === "") {
$shouldItContinue = true;
break; break;
} }
@@ -985,9 +979,6 @@ EOREGEX;
$token_count ++; $token_count ++;
break; break;
} }
if ($shouldItContinue === true) {
continue;
}
++ $i; ++ $i;
} }
if (substr( trim( $table ), 0, 1 ) == '(') { if (substr( trim( $table ), 0, 1 ) == '(') {