added parser_autoload | updated

This commit is contained in:
shreesh arora
2021-05-04 14:55:15 +05:30
parent d91def3d84
commit 0dc2cdc7f4
9 changed files with 164 additions and 159 deletions

View File

@@ -2222,8 +2222,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;