aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2013-11-26 17:16:39 +0100
committerMichael Meskes <meskes@postgresql.org>2013-11-26 17:42:33 +0100
commitd2542f9270e9587f54a63fd6ffbdd124abc6f80c (patch)
treef53c9cc7696c69b58fc436861dd4e614fbb82f16 /src
parentf641fc86fbe72a84a9d0a32279c4f9941bde6b6a (diff)
downloadpostgresql-d2542f9270e9587f54a63fd6ffbdd124abc6f80c.tar.gz
postgresql-d2542f9270e9587f54a63fd6ffbdd124abc6f80c.zip
ECPG: Fix offset to NULL/size indicator array.
Patch by Boszormenyi Zoltan <zb@cybertec.at>
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/ecpglib/data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/ecpglib/data.c b/src/interfaces/ecpg/ecpglib/data.c
index dcccd924ece..5f9a3d4604f 100644
--- a/src/interfaces/ecpg/ecpglib/data.c
+++ b/src/interfaces/ecpg/ecpglib/data.c
@@ -526,15 +526,15 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
{
case ECPGt_short:
case ECPGt_unsigned_short:
- *((short *) (ind + offset * act_tuple)) = variable->len;
+ *((short *) (ind + ind_offset * act_tuple)) = variable->len;
break;
case ECPGt_int:
case ECPGt_unsigned_int:
- *((int *) (ind + offset * act_tuple)) = variable->len;
+ *((int *) (ind + ind_offset * act_tuple)) = variable->len;
break;
case ECPGt_long:
case ECPGt_unsigned_long:
- *((long *) (ind + offset * act_tuple)) = variable->len;
+ *((long *) (ind + ind_offset * act_tuple)) = variable->len;
break;
#ifdef HAVE_LONG_LONG_INT
case ECPGt_long_long: