diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index a99adf1fd5..54d7abd8f8 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -1669,6 +1669,12 @@ Fri Oct 3 12:04:57 CEST 2003 Sun Oct 5 13:08:47 CEST 2003 - Fixed bug in day of week calculation. + +Mon Oct 6 08:41:45 CEST 2003 + + - Fixed constant listing in execute using clause. + - Fixed typo in ecpg for Informix dec_t type. + - Fixed precision handling in Informix compat funxtions. - Set ecpg version to 3.0.0 - Set ecpg library to 4.0.0 - Set pgtypes library to 1.0.0 diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c index 63f43a7ec9..500786cbed 100644 --- a/src/interfaces/ecpg/compatlib/informix.c +++ b/src/interfaces/ecpg/compatlib/informix.c @@ -341,7 +341,7 @@ dectoasc(decimal * np, char *cp, int len, int right) if (right >= 0) str = PGTYPESnumeric_to_asc(nres, right); else - str = PGTYPESnumeric_to_asc(nres, 0); + str = PGTYPESnumeric_to_asc(nres, -1); PGTYPESnumeric_free(nres); if (!str) diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c index 441cf3063e..cc8ba9c22b 100644 --- a/src/interfaces/ecpg/preproc/ecpg.c +++ b/src/interfaces/ecpg/preproc/ecpg.c @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.79 2003/10/04 01:06:38 petere Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.80 2003/10/06 06:44:55 meskes Exp $ */ /* New main for ecpg, the PostgreSQL embedded SQL precompiler. */ /* (C) Michael Meskes Feb 5th, 1998 */ @@ -171,7 +171,7 @@ main(int argc, char *const argv[]) { compat = (strcmp(optarg, "INFORMIX") == 0) ? ECPG_COMPAT_INFORMIX : ECPG_COMPAT_INFORMIX_SE; /* system_includes = true; */ - add_preprocessor_define("dec_t=numeric"); + add_preprocessor_define("dec_t=decimal"); add_preprocessor_define("intrvl_t=interval"); add_preprocessor_define("dtime_t=timestamp"); } diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 2008c42c9c..673d137f2a 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.261 2003/09/26 15:16:29 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.262 2003/10/06 06:44:55 meskes Exp $ */ /* Copyright comment */ %{ @@ -5300,7 +5300,7 @@ UsingConst: AllConst char *length = mm_alloc(32); sprintf(length, "%d", (int) strlen($1)); - append_variable(&argsinsert, new_variable($1, ECPGmake_simple_type(ECPGt_const, length), 0), &no_indicator); + add_variable(&argsinsert, new_variable($1, ECPGmake_simple_type(ECPGt_const, length), 0), &no_indicator); } } ;