Skip to content

Commit d2542f9

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

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
@@ -526,15 +526,15 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
526526
{
527527
case ECPGt_short:
528528
case ECPGt_unsigned_short:
529-
*((short *) (ind + offset * act_tuple)) = variable->len;
529+
*((short *) (ind + ind_offset * act_tuple)) = variable->len;
530530
break;
531531
case ECPGt_int:
532532
case ECPGt_unsigned_int:
533-
*((int *) (ind + offset * act_tuple)) = variable->len;
533+
*((int *) (ind + ind_offset * act_tuple)) = variable->len;
534534
break;
535535
case ECPGt_long:
536536
case ECPGt_unsigned_long:
537-
*((long *) (ind + offset * act_tuple)) = variable->len;
537+
*((long *) (ind + ind_offset * act_tuple)) = variable->len;
538538
break;
539539
#ifdef HAVE_LONG_LONG_INT
540540
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