feat: pgsql collect column name (#216)
* feat(pgsql: collect column name): pgsql: collect column name * feat(pgsql): repair column name's unit test and sql * feat(pgsql): pgsql: collect expression's column * feat(update column's collect of some expression): pgsql: update column's collect of some expression --------- Co-authored-by: zhaoge <>
This commit is contained in:
@ -33,6 +33,8 @@ export default class PostgresSQL extends BasicParser<
|
||||
PostgreSQLParser.RULE_database_name, // database name
|
||||
PostgreSQLParser.RULE_procedure_name_create, // procedure name that will be created
|
||||
PostgreSQLParser.RULE_procedure_name, // procedure name
|
||||
PostgreSQLParser.RULE_column_name_create, // column name that will be created
|
||||
PostgreSQLParser.RULE_column_name, // column name
|
||||
]);
|
||||
|
||||
protected get splitListener() {
|
||||
@ -105,6 +107,14 @@ export default class PostgresSQL extends BasicParser<
|
||||
syntaxContextType = SyntaxContextType.PROCEDURE;
|
||||
break;
|
||||
}
|
||||
case PostgreSQLParser.RULE_column_name_create: {
|
||||
syntaxContextType = SyntaxContextType.COLUMN_CREATE;
|
||||
break;
|
||||
}
|
||||
case PostgreSQLParser.RULE_column_name: {
|
||||
syntaxContextType = SyntaxContextType.COLUMN;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user