2
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/parse.pl,v 1.3 2009/01/29 09:38:38 petere Exp $
2
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/parse.pl,v 1.3.2.1 2009/11/21 05:44:12 tgl Exp $
3
3
# parser generater for ecpg
4
4
# call with backend parser as stdin
52
52
$replace_types{'CreateAsStmt'} = 'ignore';
53
53
$replace_types{'DeallocateStmt'} = 'ignore';
54
54
$replace_types{'RuleStmt'} = 'ignore';
55
$replace_types{'ColId'} = 'ignore';
56
$replace_types{'type_function_name'} = 'ignore';
55
57
$replace_types{'ColLabel'} = 'ignore';
56
$replace_types{'unreserved_keyword'} = 'ignore';
57
58
$replace_types{'Sconst'} = 'ignore';
59
# some production rules have to be ignored or replaced
60
$replace_line{'fetch_direction'} = 'ignore';
61
$replace_line{"opt_array_boundsopt_array_bounds'['Iconst']'"} = 'ignore';
60
# these replace_line commands excise certain keywords from the core keyword
61
# lists. Be sure to account for these in ColLabel and related productions.
62
$replace_line{'unreserved_keywordCONNECTION'} = 'ignore';
63
$replace_line{'unreserved_keywordCURRENT_P'} = 'ignore';
64
$replace_line{'unreserved_keywordDAY_P'} = 'ignore';
65
$replace_line{'unreserved_keywordHOUR_P'} = 'ignore';
66
$replace_line{'unreserved_keywordINPUT_P'} = 'ignore';
67
$replace_line{'unreserved_keywordMINUTE_P'} = 'ignore';
68
$replace_line{'unreserved_keywordMONTH_P'} = 'ignore';
69
$replace_line{'unreserved_keywordSECOND_P'} = 'ignore';
70
$replace_line{'unreserved_keywordYEAR_P'} = 'ignore';
62
71
$replace_line{'col_name_keywordCHAR_P'} = 'ignore';
63
72
$replace_line{'col_name_keywordINT_P'} = 'ignore';
64
73
$replace_line{'col_name_keywordVALUES'} = 'ignore';
65
74
$replace_line{'reserved_keywordTO'} = 'ignore';
66
75
$replace_line{'reserved_keywordUNION'} = 'ignore';
77
# some other production rules have to be ignored or replaced
78
$replace_line{'fetch_direction'} = 'ignore';
79
$replace_line{"opt_array_boundsopt_array_bounds'['Iconst']'"} = 'ignore';
67
80
$replace_line{'VariableShowStmtSHOWvar_name'} = 'SHOW var_name ecpg_into';
68
81
$replace_line{'VariableShowStmtSHOWTIMEZONE'} = 'SHOW TIME ZONE ecpg_into';
69
82
$replace_line{'VariableShowStmtSHOWTRANSACTIONISOLATIONLEVEL'} = 'SHOW TRANSACTION ISOLATION LEVEL ecpg_into';