diff options
author | Michael Meskes <meskes@postgresql.org> | 2013-11-26 17:16:39 +0100 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2013-11-26 17:25:42 +0100 |
commit | f142c27a324992feb554c58e9b29bc4ef0c47861 (patch) | |
tree | 5b7fe443f7d889953a8f8581bf457c762227c44b /src | |
parent | 2c3b7d2247d8989c4ef726ecdd65817c02afbf69 (diff) | |
download | postgresql-f142c27a324992feb554c58e9b29bc4ef0c47861.tar.gz postgresql-f142c27a324992feb554c58e9b29bc4ef0c47861.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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/ecpglib/data.c b/src/interfaces/ecpg/ecpglib/data.c index 9ec78a599dc..c27a2956a95 100644 --- a/src/interfaces/ecpg/ecpglib/data.c +++ b/src/interfaces/ecpg/ecpglib/data.c @@ -450,15 +450,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_64 case ECPGt_long_long: |