Skip to content

Commit f142c27

Browse files
author
Michael Meskes
committed
ECPG: Fix offset to NULL/size indicator array.
Patch by Boszormenyi Zoltan <zb@cybertec.at>
1 parent 2c3b7d2 commit f142c27

File tree

1 file changed

+3
-3
lines changed
  • src/interfaces/ecpg/ecpglib

1 file changed

+3
-3
lines changed

src/interfaces/ecpg/ecpglib/data.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,15 +450,15 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
450450
{
451451
case ECPGt_short:
452452
case ECPGt_unsigned_short:
453-
*((short *) (ind + offset * act_tuple)) = variable->len;
453+
*((short *) (ind + ind_offset * act_tuple)) = variable->len;
454454
break;
455455
case ECPGt_int:
456456
case ECPGt_unsigned_int:
457-
*((int *) (ind + offset * act_tuple)) = variable->len;
457+
*((int *) (ind + ind_offset * act_tuple)) = variable->len;
458458
break;
459459
case ECPGt_long:
460460
case ECPGt_unsigned_long:
461-
*((long *) (ind + offset * act_tuple)) = variable->len;
461+
*((long *) (ind + ind_offset * act_tuple)) = variable->len;
462462
break;
463463
#ifdef HAVE_LONG_LONG_INT_64
464464
case ECPGt_long_long:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy