- Fixed constant listing in execute using clause.

- Fixed typo in ecpg for Informix dec_t type.
- Fixed precision handling in Informix compat funxtions.
This commit is contained in:
Michael Meskes 2003-10-06 06:44:55 +00:00
parent 5e3aaf5402
commit aeb1f6478e
4 changed files with 11 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -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 <meskes@postgresql.org> 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");
}

View File

@ -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);
}
}
;