update parser_sql

This commit is contained in:
shreesh arora
2021-05-03 01:06:30 +05:30
parent b7ef2391cc
commit d91def3d84
172 changed files with 8743 additions and 2571 deletions

View File

@@ -30,9 +30,8 @@
* DAMAGE.
*/
require_once(dirname(__FILE__) . '/AbstractProcessor.php');
require_once(dirname(__FILE__) . '/IndexColumnListProcessor.php');
require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
namespace PHPSQLParser\processors;
use PHPSQLParser\utils\ExpressionType;
/**
*
@@ -155,7 +154,7 @@ class ReferenceDefinitionProcessor extends AbstractProcessor {
case 'REFERENCES':
if ($upper[0] === '(' && substr($upper, -1) === ')') {
# index_col_name list
$processor = new IndexColumnListProcessor();
$processor = new IndexColumnListProcessor($this->options);
$cols = $processor->process($this->removeParenthesisFromStart($trim));
$expr['sub_tree'][] = array('expr_type' => ExpressionType::COLUMN_LIST, 'base_expr' => $trim,
'sub_tree' => $cols);