From 9def653c91297ad05a8ed6f069c4531018d22a16 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Fri, 23 Oct 2020 20:54:57 -0400 Subject: [PATCH] PMCORE-2296 Suggested control, query with left join is not working --- gulliver/system/class.phpSqlParser.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gulliver/system/class.phpSqlParser.php b/gulliver/system/class.phpSqlParser.php index 17fa0ac4f..a1d6030e3 100644 --- a/gulliver/system/class.phpSqlParser.php +++ b/gulliver/system/class.phpSqlParser.php @@ -876,8 +876,6 @@ EOREGEX; } break; } - - $shouldItContinue = false; switch ($upper) { case 'AS': $token_count ++; @@ -888,7 +886,6 @@ EOREGEX; ++ $n; } - $shouldItContinue = true; break; case 'INDEX': if ($token_category == 'CREATE') { @@ -910,12 +907,10 @@ EOREGEX; case 'OUTER': # $expression .= $token; $token_count ++; - $shouldItContinue = true; break; case 'FOR': $token_count ++; $skip_next = true; - $shouldItContinue = true; break; case 'LEFT': case 'RIGHT': @@ -971,7 +966,6 @@ EOREGEX; break; default: if ($token === false || empty( $token ) || $token === "") { - $shouldItContinue = true; break; } @@ -985,9 +979,6 @@ EOREGEX; $token_count ++; break; } - if ($shouldItContinue === true) { - continue; - } ++ $i; } if (substr( trim( $table ), 0, 1 ) == '(') {