aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/execute.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-09-18 13:12:23 +0000
committerMichael Meskes <meskes@postgresql.org>2003-09-18 13:12:23 +0000
commit723a9bde3335daa32e90bf804241eec8d1dda597 (patch)
tree4b5154eabe3be606b693932073c13ff35911f774 /src/interfaces/ecpg/ecpglib/execute.c
parent215d965f0e9b36ed06fe019bd4795782274787c4 (diff)
downloadpostgresql-723a9bde3335daa32e90bf804241eec8d1dda597.tar.gz
postgresql-723a9bde3335daa32e90bf804241eec8d1dda597.zip
- Accept output variables for FETCH in DECLARE statement.
- Synced parser. - Allowed C variables to carry the name of prepared statements. - Added Informix handling of datatype converion errors.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/execute.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c
index 6a6b4d8e465..9f813f6be8b 100644
--- a/src/interfaces/ecpg/ecpglib/execute.c
+++ b/src/interfaces/ecpg/ecpglib/execute.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.24 2003/09/09 10:46:37 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.25 2003/09/18 13:12:23 meskes Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
@@ -857,7 +857,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
else
PGTYPESnumeric_from_decimal((decimal *) ((var + var->offset * element)->value), nval);
- str = PGTYPESnumeric_to_asc(nval, 0);
+ str = PGTYPESnumeric_to_asc(nval, nval->dscale);
PGTYPESnumeric_free(nval);
slen = strlen(str);
@@ -879,7 +879,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
else
PGTYPESnumeric_from_decimal((decimal *) (var->value), nval);
- str = PGTYPESnumeric_to_asc(nval, 0);
+ str = PGTYPESnumeric_to_asc(nval, nval->dscale);
PGTYPESnumeric_free(nval);
slen = strlen(str);