diff options
Diffstat (limited to 'src/interfaces/ecpg/lib/execute.c')
-rw-r--r-- | src/interfaces/ecpg/lib/execute.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/lib/execute.c b/src/interfaces/ecpg/lib/execute.c index f1d11105f07..9daa97a087f 100644 --- a/src/interfaces/ecpg/lib/execute.c +++ b/src/interfaces/ecpg/lib/execute.c @@ -12,6 +12,8 @@ /* Taken over as part of PostgreSQL by Michael Meskes <meskes@postgresql.org> on Feb. 5th, 1998 */ +#include "config.h" + #include <stdio.h> #include <locale.h> @@ -414,11 +416,13 @@ ECPGexecute(struct statement * stmt) if (*(long *) var->ind_value < 0L) strcpy(buff, "null"); break; +#ifdef HAVE_LONG_LONG_INT_64 case ECPGt_long_long: case ECPGt_unsigned_long_long: if (*(long long int*) var->ind_value < 0LL) strcpy(buff, "null"); break; +#endif /* HAVE_LONG_LONG_INT_64 */ default: break; } @@ -542,7 +546,7 @@ ECPGexecute(struct statement * stmt) tobeinserted = mallocedval; break; - +#ifdef HAVE_LONG_LONG_INT_64 case ECPGt_long_long: if (!(mallocedval = ecpg_alloc(var->arrsize * 25, stmt->lineno))) return false; @@ -580,7 +584,7 @@ ECPGexecute(struct statement * stmt) tobeinserted = mallocedval; break; - +#endif /* HAVE_LONG_LONG_INT_64 */ case ECPGt_float: if (!(mallocedval = ecpg_alloc(var->arrsize * 20, stmt->lineno))) return false; @@ -1003,7 +1007,7 @@ ECPGdo(int lineno, const char *connection_name, char *query,...) * * Copyright (c) 2000, Christof Petig <christof.petig@wtal.de> * - * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.13 2000/10/29 09:44:58 meskes Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.14 2000/11/20 15:56:14 petere Exp $ */ PGconn *ECPG_internal_get_connection(char *name); |