Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaeb1f64

Browse files
author
Michael Meskes
committed
- Fixed constant listing in execute using clause.
- Fixed typo in ecpg for Informix dec_t type.- Fixed precision handling in Informix compat funxtions.
1 parent5e3aaf5 commitaeb1f64

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,6 +1669,12 @@ Fri Oct 3 12:04:57 CEST 2003
16691669
Sun Oct 5 13:08:47 CEST 2003
16701670

16711671
- Fixed bug in day of week calculation.
1672+
1673+
Mon Oct 6 08:41:45 CEST 2003
1674+
1675+
- Fixed constant listing in execute using clause.
1676+
- Fixed typo in ecpg for Informix dec_t type.
1677+
- Fixed precision handling in Informix compat funxtions.
16721678
- Set ecpg version to 3.0.0
16731679
- Set ecpg library to 4.0.0
16741680
- Set pgtypes library to 1.0.0

‎src/interfaces/ecpg/compatlib/informix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ dectoasc(decimal * np, char *cp, int len, int right)
341341
if (right >=0)
342342
str=PGTYPESnumeric_to_asc(nres,right);
343343
else
344-
str=PGTYPESnumeric_to_asc(nres,0);
344+
str=PGTYPESnumeric_to_asc(nres,-1);
345345

346346
PGTYPESnumeric_free(nres);
347347
if (!str)

‎src/interfaces/ecpg/preproc/ecpg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.79 2003/10/04 01:06:38 petere Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.80 2003/10/0606:44:55 meskes Exp $ */
22

33
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
44
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
@@ -171,7 +171,7 @@ main(int argc, char *const argv[])
171171
{
172172
compat= (strcmp(optarg,"INFORMIX")==0) ?ECPG_COMPAT_INFORMIX :ECPG_COMPAT_INFORMIX_SE;
173173
/* system_includes = true; */
174-
add_preprocessor_define("dec_t=numeric");
174+
add_preprocessor_define("dec_t=decimal");
175175
add_preprocessor_define("intrvl_t=interval");
176176
add_preprocessor_define("dtime_t=timestamp");
177177
}

‎src/interfaces/ecpg/preproc/preproc.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.261 2003/09/26 15:16:29 meskes Exp $*/
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.262 2003/10/06 06:44:55 meskes Exp $*/
22

33
/* Copyright comment*/
44
%{
@@ -5300,7 +5300,7 @@ UsingConst: AllConst
53005300
char *length = mm_alloc(32);
53015301

53025302
sprintf(length,"%d", (int) strlen($1));
5303-
append_variable(&argsinsert, new_variable($1, ECPGmake_simple_type(ECPGt_const, length), 0), &no_indicator);
5303+
add_variable(&argsinsert, new_variable($1, ECPGmake_simple_type(ECPGt_const, length), 0), &no_indicator);
53045304
}
53055305
}
53065306
;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp