Skip to content
Snippets Groups Projects
Commit 11b274f0 authored by Tom Lane's avatar Tom Lane
Browse files

Fix some ill-considered ifdefs, per report from Hans-JÏrgen SchÎnig.

parent 58ad65ec
No related branches found
No related tags found
No related merge requests found
......@@ -88,12 +88,10 @@ pgtypes_fmt_replace(union un_fmt_comb replace_val, int replace_type, char **outp
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
"%0.0g", replace_val.double_val);
break;
#ifdef HAVE_INT64
case PGTYPES_TYPE_INT64:
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
INT64_FORMAT, replace_val.int64_val);
break;
#endif
case PGTYPES_TYPE_UINT:
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
"%u", replace_val.uint_val);
......
......@@ -29,9 +29,7 @@ union un_fmt_comb
char char_val;
unsigned long int luint_val;
double double_val;
#ifdef HAVE_INT64_TIMESTAMP
int64 int64_val;
#endif
};
int pgtypes_fmt_replace(union un_fmt_comb, int, char **, int *);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment