=?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= <[EMAIL PROTECTED]> writes:
> I have tried to perform a regression test on AIX 5.1 (PostgreSQL 7.4beta3).
> I have encountered an error.
Ill-considered combination of #ifdefs apparently. I have applied the
attached patch.
regards, tom lane
*** src/interfaces/ecpg/pgtypeslib/extern.h~ Sun Aug 3 23:01:49 2003
--- src/interfaces/ecpg/pgtypeslib/extern.h Sun Sep 21 13:41:53 2003
***************
*** 29,37 ****
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 *);
--- 29,35 ----
*** src/interfaces/ecpg/pgtypeslib/common.c~ Sun Aug 3 23:01:49 2003
--- src/interfaces/ecpg/pgtypeslib/common.c Sun Sep 21 13:41:43 2003
***************
*** 88,99 ****
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);
--- 88,97 ----
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org