mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Synced parser and fixed a bug in error output to log file.
This commit is contained in:
parent
048cb1ce6b
commit
4b02f3c4eb
@ -1600,6 +1600,10 @@ Fri Aug 1 08:54:02 CEST 2003
|
||||
|
||||
- Added some Informix error codes in Informix mode.
|
||||
- Added just another pgtypeslib function.
|
||||
|
||||
Mon Aug 25 13:24:27 CEST 2003
|
||||
|
||||
- Synced parser.
|
||||
- Set ecpg version to 3.0.0
|
||||
- Set ecpg library to 4.0.0
|
||||
- Set pgtypes library to 1.0.0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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
|
||||
#include "postgres_fe.h"
|
||||
@ -192,7 +192,7 @@ ECPGraise_backend(int line, PGresult *result, PGconn *conn, int compat)
|
||||
sqlca->sqlcode = ECPG_PGSQL;
|
||||
|
||||
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 */
|
||||
ECPGfree_auto_mem();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $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 */
|
||||
%{
|
||||
@ -420,7 +420,7 @@ adjust_informix(struct arguments *list)
|
||||
%type <str> row_descriptor ConstDatetime AlterDomainStmt AlterSeqStmt
|
||||
%type <str> SelectStmt into_clause OptTemp ConstraintAttributeSpec
|
||||
%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> join_outer where_clause relation_expr sub_type opt_arg
|
||||
%type <str> opt_column_list insert_rest InsertStmt
|
||||
@ -2887,14 +2887,14 @@ sortby_list: sortby { $$ = $1; }
|
||||
| sortby_list ',' sortby { $$ = cat_str(3, $1, make_str(","), $3); }
|
||||
;
|
||||
|
||||
sortby: a_expr OptUseOp
|
||||
{ $$ = cat2_str($1, $2); }
|
||||
;
|
||||
|
||||
OptUseOp: USING all_Op { $$ = cat2_str(make_str("using"), $2); }
|
||||
| ASC { $$ = make_str("asc"); }
|
||||
| DESC { $$ = make_str("desc"); }
|
||||
| /*EMPTY*/ { $$ = EMPTY; }
|
||||
sortby: a_expr USING qual_all_Op
|
||||
{ $$ = cat_str(3, $1, make_str("using"), $3); }
|
||||
| a_expr ASC
|
||||
{ $$ = cat2_str($1, make_str("asc")); }
|
||||
| a_expr DESC
|
||||
{ $$ = cat2_str($1, make_str("desc")); }
|
||||
| a_expr
|
||||
{ $$ = $1; }
|
||||
;
|
||||
|
||||
select_limit: LIMIT select_limit_value OFFSET select_offset_value
|
||||
|
Loading…
Reference in New Issue
Block a user