Merge pull request #249 from shreesh-webkul/qlo-parser-sql

Updated Sql Parser Library
This commit is contained in:
Rohit Jain
2021-10-14 18:05:12 +05:30
committed by GitHub
181 changed files with 8907 additions and 2730 deletions

View File

@@ -2169,8 +2169,8 @@ class ToolsCore
public static function parserSQL($sql)
{
if (strlen($sql) > 0) {
require_once(_PS_TOOL_DIR_.'parser_sql/PHPSQLParser.php');
$parser = new PHPSQLParser($sql);
require_once _PS_TOOL_DIR_.'parser_sql/php_sql_parser_autoload.php';
$parser = new PHPSQLParser\PHPSQLParser($sql);
return $parser->parsed;
}
return false;