Skip to content

Commit 25b10fc

Browse files
author
Michael Meskes
committed
Missed two places to replace union member.
1 parent 6520c66 commit 25b10fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/interfaces/ecpg/pgtypeslib/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ pgtypes_fmt_replace(union un_fmt_comb replace_val, int replace_type, char** outp
8080
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
8181
"%0.0g", replace_val.double_val);
8282
break;
83-
#ifdef HAVE_INT6
83+
#ifdef HAVE_INT64
8484
case PGTYPES_TYPE_INT64:
8585
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
86-
INT64_FORMAT, replace_val.replace_int64);
86+
INT64_FORMAT, replace_val.int64_val);
8787
break;
8888
#endif
8989
case PGTYPES_TYPE_UINT:

src/interfaces/ecpg/pgtypeslib/timestamp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ dttofmtasc_replace (Timestamp *ts, Date dDate, int dow, struct tm* tm,
546546
break;
547547
case 's':
548548
#ifdef HAVE_INT64_TIMESTAMP
549-
replace_val.replace_int64 = ((*ts - SetEpochTimestamp()) / 1000000e0);
549+
replace_val.int64_val = ((*ts - SetEpochTimestamp()) / 1000000e0);
550550
replace_type = PGTYPES_TYPE_INT64;
551551
#else
552552
replace_val.double_val = *ts - SetEpochTimestamp();

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