diff options
| author | Michael Meskes <meskes@postgresql.org> | 1999-08-02 04:59:18 +0000 |
|---|---|---|
| committer | Michael Meskes <meskes@postgresql.org> | 1999-08-02 04:59:18 +0000 |
| commit | b2a2be4c5ac9896af55ff367e0863d3a65fc2277 (patch) | |
| tree | 1b5f12b37c1983eef7d6c042bb73e89a19532afe /src/interfaces/ecpg/preproc/preproc.y | |
| parent | 8624ff7612865620cb84322cf53767ff7a658cac (diff) | |
| download | postgresql-b2a2be4c5ac9896af55ff367e0863d3a65fc2277.tar.gz | |
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/preproc/preproc.y')
| -rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 02caacf4cf..23eaa6d82c 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -777,10 +777,10 @@ adjust_array(enum ECPGttype type_enum, int *dimension, int *length, int type_dim %type <str> update_target_el opt_id relation_name database_name %type <str> access_method attr_name class index_name name func_name %type <str> file_name AexprConst ParamNo TypeId -%type <str> in_expr_nodes not_in_expr_nodes a_expr b_expr +%type <str> in_expr_nodes a_expr b_expr %type <str> opt_indirection expr_list extract_list extract_arg %type <str> position_list substr_list substr_from -%type <str> trim_list in_expr substr_for not_in_expr attr attrs +%type <str> trim_list in_expr substr_for attr attrs %type <str> Typename SimpleTypename Generic Numeric generic opt_float opt_numeric %type <str> opt_decimal Character character opt_varying opt_charset %type <str> opt_collate Datetime datetime opt_timezone opt_interval @@ -3687,7 +3687,7 @@ a_expr: attr { $$ = make4_str($1, make1_str(" in ("), $4, make1_str(")")); } - | a_expr NOT IN '(' not_in_expr ')' + | a_expr NOT IN '(' in_expr ')' { $$ = make4_str($1, make1_str(" not in ("), $5, make1_str(")")); } @@ -4020,23 +4020,9 @@ in_expr: SubSelect { $$ = $1; } ; -in_expr_nodes: AexprConst +in_expr_nodes: a_expr { $$ = $1; } - | in_expr_nodes ',' AexprConst - { $$ = cat3_str($1, make1_str(","), $3);} - ; - -not_in_expr: SubSelect - { - $$ = $1; - } - | not_in_expr_nodes - { $$ = $1; } - ; - -not_in_expr_nodes: AexprConst - { $$ = $1; } - | not_in_expr_nodes ',' AexprConst + | in_expr_nodes ',' a_expr { $$ = cat3_str($1, make1_str(","), $3);} ; @@ -5647,7 +5633,7 @@ ecpg_expr: attr { $$ = make4_str($1, make1_str(" in ("), $4, make1_str(")")); } - | a_expr NOT IN '(' not_in_expr ')' + | a_expr NOT IN '(' in_expr ')' { $$ = make4_str($1, make1_str(" not in ("), $5, make1_str(")")); } |
