aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/execute.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2002-01-13 08:52:09 +0000
committerMichael Meskes <meskes@postgresql.org>2002-01-13 08:52:09 +0000
commit7138a1e5fc034640afe1c570b426b325389377f4 (patch)
treee1a3e4059c240eef50e6aa0638199088b66a44ff /src/interfaces/ecpg/lib/execute.c
parent4b20cc10326a79289a223fc2f639b52e7f816f7e (diff)
downloadpostgresql-7138a1e5fc034640afe1c570b426b325389377f4.tar.gz
postgresql-7138a1e5fc034640afe1c570b426b325389377f4.zip
- Fixed variable handling for struct members.
- Removed check for array input. An attribut might store the complete array.
Diffstat (limited to 'src/interfaces/ecpg/lib/execute.c')
-rw-r--r--src/interfaces/ecpg/lib/execute.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/lib/execute.c b/src/interfaces/ecpg/lib/execute.c
index dba99a1bd6c..33941a7f89b 100644
--- a/src/interfaces/ecpg/lib/execute.c
+++ b/src/interfaces/ecpg/lib/execute.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.35 2002/01/08 14:25:04 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.36 2002/01/13 08:52:08 meskes Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
@@ -486,14 +486,15 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
char *newcopy = NULL;
/*
- * arrays are not possible
+ * arrays are not possible unless the attribute is an array too
+ * FIXME: we do not know if the attribute is an array here
*/
-
- if (var->arrsize > 1)
+
+/* if (var->arrsize > 1 && ...)
{
ECPGraise(stmt->lineno, ECPG_ARRAY_INSERT, NULL);
return false;
- }
+ }*/
/*
* Some special treatment is needed for records since we want their