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:31:45 +0100 | 
| commit | ddd8416e40408da052cb630e1abea12909ca4d5e (patch) | |
| tree | 787593462e3c98e1cc8aa14d278c7f7175d2121d | |
| parent | 7bee2e3e55f4503eec65783bd6d16f8291537c25 (diff) | |
ECPG: Fix offset to NULL/size indicator array.
Patch by Boszormenyi Zoltan <zb@cybertec.at>
| -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 436e74966c5..c219aed1e9e 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: | 
