From 23e4fc18a77a2b509302808d97c8fb6fc101ce4b Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Fri, 4 Jul 2003 11:30:48 +0000 Subject: Fixed informix behaviour for select without into. --- src/interfaces/ecpg/ecpglib/execute.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/interfaces/ecpg/ecpglib/execute.c') diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index bc945a442c1..87d528533de 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.14 2003/07/01 12:40:51 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.15 2003/07/04 11:30:48 meskes Exp $ */ /* * The aim is to get a simpler inteface to the database routines. @@ -1173,15 +1173,16 @@ ECPGexecute(struct statement * stmt) else for (act_field = 0; act_field < nfields && status; act_field++) { - if (var == NULL) + if (var != NULL) + { + status = ECPGstore_result(results, act_field, stmt, var); + var = var->next; + } + else if (!INFORMIX_MODE(stmt->compat)) { ECPGraise(stmt->lineno, ECPG_TOO_FEW_ARGUMENTS, NULL); return (false); } - - status = ECPGstore_result(results, act_field, stmt, var); - - var = var->next; } if (status && var != NULL) -- cgit v1.2.3