- Fixed constant listing in execute using clause.
authorMichael Meskes <meskes@postgresql.org>
Mon, 6 Oct 2003 06:44:55 +0000 (06:44 +0000)
committerMichael Meskes <meskes@postgresql.org>
Mon, 6 Oct 2003 06:44:55 +0000 (06:44 +0000)
- Fixed typo in ecpg for Informix dec_t type.
- Fixed precision handling in Informix compat funxtions.

src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/preproc/ecpg.c
src/interfaces/ecpg/preproc/preproc.y

index a99adf1fd52d5d347de61ce62e74b37970c6facb..54d7abd8f893c2b3dcccb4ec040d24303ddc5e0f 100644 (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
index 63f43a7ec9b9b56c60209a6b02850e078cb43fba..500786cbeded248d010c4fc09babb96b8f918e1d 100644 (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)
index 441cf3063ec83b1fed86844d1d65e1451f737971..cc8ba9c22bc76365e29e908b92254a8b19021e5a 100644 (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");
                }
index 2008c42c9cd61722d421e40ee1fe2f2e8f30e8f1..673d137f2a374fa3531ffb520e52dd0af42eb3ce 100644 (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);
            }
        }
        ;