From 0262337ad3e07cc8d01ee11b2ee959a3c57ebf1a Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Sun, 26 Oct 2003 09:50:47 +0000 Subject: [PATCH] Fixed bug with indicators when storage for the string is dynamically allocated. --- src/interfaces/ecpg/ChangeLog | 5 +++++ src/interfaces/ecpg/ecpglib/execute.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 815a77009a..824d3a606d 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -1692,6 +1692,11 @@ Sun Oct 19 15:20:16 CEST 2003 Mon Oct 20 14:53:40 CEST 2003 - Install dummy sqlda.h file. + +Sun Oct 26 10:47:05 CET 2003 + + - Fixed bug with indicators when storage for the + string is dynamically allocated - Set ecpg version to 3.0.0 - Set ecpg library to 4.0.0 - Set pgtypes library to 1.0.0 diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 9f813f6be8..5bb87e12f6 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.25 2003/09/18 13:12:23 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.26 2003/10/26 09:50:47 meskes Exp $ */ /* * The aim is to get a simpler inteface to the database routines. @@ -450,7 +450,7 @@ ECPGstore_result(const PGresult *results, int act_field, if (!ECPGget_data(results, act_tuple, act_field, stmt->lineno, var->type, var->ind_type, current_data_location, - var->ind_value, len, 0, 0, isarray, stmt->compat, stmt->force_indicator)) + var->ind_value, len, 0, var->ind_offset, isarray, stmt->compat, stmt->force_indicator)) status = false; else { -- 2.11.0