i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
"%0.0g", replace_val.double_val);
break;
-#ifdef HAVE_INT6
+#ifdef HAVE_INT64
case PGTYPES_TYPE_INT64:
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
- INT64_FORMAT, replace_val.replace_int64);
+ INT64_FORMAT, replace_val.int64_val);
break;
#endif
case PGTYPES_TYPE_UINT:
break;
case 's':
#ifdef HAVE_INT64_TIMESTAMP
- replace_val.replace_int64 = ((*ts - SetEpochTimestamp()) / 1000000e0);
+ replace_val.int64_val = ((*ts - SetEpochTimestamp()) / 1000000e0);
replace_type = PGTYPES_TYPE_INT64;
#else
replace_val.double_val = *ts - SetEpochTimestamp();