Commit 4b02f3c4 authored by Michael Meskes's avatar Michael Meskes

Synced parser and fixed a bug in error output to log file.

parent 048cb1ce
...@@ -1600,6 +1600,10 @@ Fri Aug 1 08:54:02 CEST 2003 ...@@ -1600,6 +1600,10 @@ Fri Aug 1 08:54:02 CEST 2003
- Added some Informix error codes in Informix mode. - Added some Informix error codes in Informix mode.
- Added just another pgtypeslib function. - Added just another pgtypeslib function.
Mon Aug 25 13:24:27 CEST 2003
- Synced parser.
- Set ecpg version to 3.0.0 - Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0 - Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0 - Set pgtypes library to 1.0.0
......
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/error.c,v 1.8 2003/08/24 18:36:38 petere Exp $ */ /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/error.c,v 1.9 2003/08/25 13:43:58 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL #define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h" #include "postgres_fe.h"
...@@ -192,7 +192,7 @@ ECPGraise_backend(int line, PGresult *result, PGconn *conn, int compat) ...@@ -192,7 +192,7 @@ ECPGraise_backend(int line, PGresult *result, PGconn *conn, int compat)
sqlca->sqlcode = ECPG_PGSQL; sqlca->sqlcode = ECPG_PGSQL;
ECPGlog("raising sqlstate %.*s in line %d, '%s'.\n", ECPGlog("raising sqlstate %.*s in line %d, '%s'.\n",
sqlca->sqlstate, sizeof(sqlca->sqlstate), line, sqlca->sqlerrm.sqlerrmc); sizeof(sqlca->sqlstate), sqlca->sqlstate, line, sqlca->sqlerrm.sqlerrmc);
/* free all memory we have allocated for the user */ /* free all memory we have allocated for the user */
ECPGfree_auto_mem(); ECPGfree_auto_mem();
......
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.251 2003/08/06 15:54:06 tgl Exp $ */ /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.252 2003/08/25 13:44:00 meskes Exp $ */
/* Copyright comment */ /* Copyright comment */
%{ %{
...@@ -420,7 +420,7 @@ adjust_informix(struct arguments *list) ...@@ -420,7 +420,7 @@ adjust_informix(struct arguments *list)
%type <str> row_descriptor ConstDatetime AlterDomainStmt AlterSeqStmt %type <str> row_descriptor ConstDatetime AlterDomainStmt AlterSeqStmt
%type <str> SelectStmt into_clause OptTemp ConstraintAttributeSpec %type <str> SelectStmt into_clause OptTemp ConstraintAttributeSpec
%type <str> opt_table opt_all sort_clause sortby_list ConstraintAttr %type <str> opt_table opt_all sort_clause sortby_list ConstraintAttr
%type <str> sortby OptUseOp qualified_name_list name_list ColId_or_Sconst %type <str> sortby qualified_name_list name_list ColId_or_Sconst
%type <str> group_clause having_clause from_clause opt_distinct opt_hold %type <str> group_clause having_clause from_clause opt_distinct opt_hold
%type <str> join_outer where_clause relation_expr sub_type opt_arg %type <str> join_outer where_clause relation_expr sub_type opt_arg
%type <str> opt_column_list insert_rest InsertStmt %type <str> opt_column_list insert_rest InsertStmt
...@@ -2887,14 +2887,14 @@ sortby_list: sortby { $$ = $1; } ...@@ -2887,14 +2887,14 @@ sortby_list: sortby { $$ = $1; }
| sortby_list ',' sortby { $$ = cat_str(3, $1, make_str(","), $3); } | sortby_list ',' sortby { $$ = cat_str(3, $1, make_str(","), $3); }
; ;
sortby: a_expr OptUseOp sortby: a_expr USING qual_all_Op
{ $$ = cat2_str($1, $2); } { $$ = cat_str(3, $1, make_str("using"), $3); }
; | a_expr ASC
{ $$ = cat2_str($1, make_str("asc")); }
OptUseOp: USING all_Op { $$ = cat2_str(make_str("using"), $2); } | a_expr DESC
| ASC { $$ = make_str("asc"); } { $$ = cat2_str($1, make_str("desc")); }
| DESC { $$ = make_str("desc"); } | a_expr
| /*EMPTY*/ { $$ = EMPTY; } { $$ = $1; }
; ;
select_limit: LIMIT select_limit_value OFFSET select_offset_value select_limit: LIMIT select_limit_value OFFSET select_offset_value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment