mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Fix some ill-considered ifdefs, per report from Hans-JÏrgen SchÎnig.
This commit is contained in:
parent
58ad65ec2d
commit
11b274f00f
@ -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,
|
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
||||||
"%0.0g", replace_val.double_val);
|
"%0.0g", replace_val.double_val);
|
||||||
break;
|
break;
|
||||||
#ifdef HAVE_INT64
|
|
||||||
case PGTYPES_TYPE_INT64:
|
case PGTYPES_TYPE_INT64:
|
||||||
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
||||||
INT64_FORMAT, replace_val.int64_val);
|
INT64_FORMAT, replace_val.int64_val);
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
case PGTYPES_TYPE_UINT:
|
case PGTYPES_TYPE_UINT:
|
||||||
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
||||||
"%u", replace_val.uint_val);
|
"%u", replace_val.uint_val);
|
||||||
|
@ -29,9 +29,7 @@ union un_fmt_comb
|
|||||||
char char_val;
|
char char_val;
|
||||||
unsigned long int luint_val;
|
unsigned long int luint_val;
|
||||||
double double_val;
|
double double_val;
|
||||||
#ifdef HAVE_INT64_TIMESTAMP
|
|
||||||
int64 int64_val;
|
int64 int64_val;
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int pgtypes_fmt_replace(union un_fmt_comb, int, char **, int *);
|
int pgtypes_fmt_replace(union un_fmt_comb, int, char **, int *);
|
||||||
|
Loading…
Reference in New Issue
Block a user