mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
ECPG: Fix offset to NULL/size indicator array.
Patch by Boszormenyi Zoltan <zb@cybertec.at>
This commit is contained in:
parent
f641fc86fb
commit
d2542f9270
@ -526,15 +526,15 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
|||||||
{
|
{
|
||||||
case ECPGt_short:
|
case ECPGt_short:
|
||||||
case ECPGt_unsigned_short:
|
case ECPGt_unsigned_short:
|
||||||
*((short *) (ind + offset * act_tuple)) = variable->len;
|
*((short *) (ind + ind_offset * act_tuple)) = variable->len;
|
||||||
break;
|
break;
|
||||||
case ECPGt_int:
|
case ECPGt_int:
|
||||||
case ECPGt_unsigned_int:
|
case ECPGt_unsigned_int:
|
||||||
*((int *) (ind + offset * act_tuple)) = variable->len;
|
*((int *) (ind + ind_offset * act_tuple)) = variable->len;
|
||||||
break;
|
break;
|
||||||
case ECPGt_long:
|
case ECPGt_long:
|
||||||
case ECPGt_unsigned_long:
|
case ECPGt_unsigned_long:
|
||||||
*((long *) (ind + offset * act_tuple)) = variable->len;
|
*((long *) (ind + ind_offset * act_tuple)) = variable->len;
|
||||||
break;
|
break;
|
||||||
#ifdef HAVE_LONG_LONG_INT
|
#ifdef HAVE_LONG_LONG_INT
|
||||||
case ECPGt_long_long:
|
case ECPGt_long_long:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user