mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
- 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:
parent
5e3aaf5402
commit
aeb1f6478e
@ -1669,6 +1669,12 @@ Fri Oct 3 12:04:57 CEST 2003
|
|||||||
Sun Oct 5 13:08:47 CEST 2003
|
Sun Oct 5 13:08:47 CEST 2003
|
||||||
|
|
||||||
- Fixed bug in day of week calculation.
|
- 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 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
|
||||||
|
@ -341,7 +341,7 @@ dectoasc(decimal * np, char *cp, int len, int right)
|
|||||||
if (right >= 0)
|
if (right >= 0)
|
||||||
str = PGTYPESnumeric_to_asc(nres, right);
|
str = PGTYPESnumeric_to_asc(nres, right);
|
||||||
else
|
else
|
||||||
str = PGTYPESnumeric_to_asc(nres, 0);
|
str = PGTYPESnumeric_to_asc(nres, -1);
|
||||||
|
|
||||||
PGTYPESnumeric_free(nres);
|
PGTYPESnumeric_free(nres);
|
||||||
if (!str)
|
if (!str)
|
||||||
|
@ -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. */
|
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
|
||||||
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
|
/* (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;
|
compat = (strcmp(optarg, "INFORMIX") == 0) ? ECPG_COMPAT_INFORMIX : ECPG_COMPAT_INFORMIX_SE;
|
||||||
/* system_includes = true; */
|
/* system_includes = true; */
|
||||||
add_preprocessor_define("dec_t=numeric");
|
add_preprocessor_define("dec_t=decimal");
|
||||||
add_preprocessor_define("intrvl_t=interval");
|
add_preprocessor_define("intrvl_t=interval");
|
||||||
add_preprocessor_define("dtime_t=timestamp");
|
add_preprocessor_define("dtime_t=timestamp");
|
||||||
}
|
}
|
||||||
|
@ -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 */
|
/* Copyright comment */
|
||||||
%{
|
%{
|
||||||
@ -5300,7 +5300,7 @@ UsingConst: AllConst
|
|||||||
char *length = mm_alloc(32);
|
char *length = mm_alloc(32);
|
||||||
|
|
||||||
sprintf(length, "%d", (int) strlen($1));
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user