Hello!

I've noticed in parser thet for triggers source include "AS" but for
functions and procedures not!

psql_procedure_clause
: procedure_clause_start AS local_declaration_list full_proc_block
{
$$ = $1;
$$->source = makeParseStr(YYPOSNARG(3), YYPOSNARG(4));
$$->localDeclList = $3;
$$->body = $4;
}
;

psql_function_clause
: function_clause_start AS local_declaration_list full_proc_block
{
$$ = $1;
$$->source = makeParseStr(YYPOSNARG(3), YYPOSNARG(4));
$$->localDeclList = $3;
$$->body = $4;
}
;

trigger_clause
: symbol_trigger_name trigger_active trigger_type trigger_position
AS local_declaration_list full_proc_block
{
$$ = newNode<CreateAlterTriggerNode>(*$1);
$$->active = $2;
$$->type = $3;
$$->position = $4;
$$->source = makeParseStr(YYPOSNARG(5), YYPOSNARG(7));
$$->localDeclList = $6;
$$->body = $7;
}

It's not uniform, consistent. Is there some explanation?



-- 
Roman Simakov

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to