diff options
author | Michael Meskes <meskes@postgresql.org> | 2010-05-20 22:10:46 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2010-05-20 22:10:46 +0000 |
commit | 15ab0e9a6051ff5b6c88a729ddd9d57ac44f7a11 (patch) | |
tree | fef663d3ac0c32bc07b4702b2924b4e76dd2f943 /src/interfaces/ecpg/ecpglib/execute.c | |
parent | de98ef62c7fe7a2bf02fafab6a95ae2e138ed075 (diff) | |
download | postgresql-15ab0e9a6051ff5b6c88a729ddd9d57ac44f7a11.tar.gz postgresql-15ab0e9a6051ff5b6c88a729ddd9d57ac44f7a11.zip |
Ecpg now accepts "long long" datatypes even if "long" is 64bit wide. This used to cover the equally long "long long" type. This patch closes bug #5464.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/execute.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/execute.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 8ae102b4493..60b7c75f0ec 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.95 2010/02/26 02:01:30 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.96 2010/05/20 22:10:45 meskes Exp $ */ /* * The aim is to get a simpler inteface to the database routines. @@ -541,13 +541,13 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari if (*(long *) var->ind_value < 0L) *tobeinserted_p = NULL; break; -#ifdef HAVE_LONG_LONG_INT_64 +#ifdef HAVE_LONG_LONG case ECPGt_long_long: case ECPGt_unsigned_long_long: if (*(long long int *) var->ind_value < (long long) 0) *tobeinserted_p = NULL; break; -#endif /* HAVE_LONG_LONG_INT_64 */ +#endif /* HAVE_LONG_LONG */ case ECPGt_NO_INDICATOR: if (force_indicator == false) { @@ -679,7 +679,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari *tobeinserted_p = mallocedval; break; -#ifdef HAVE_LONG_LONG_INT_64 +#ifdef HAVE_LONG_LONG case ECPGt_long_long: if (!(mallocedval = ecpg_alloc(asize * 30, lineno))) return false; @@ -717,7 +717,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari *tobeinserted_p = mallocedval; break; -#endif /* HAVE_LONG_LONG_INT_64 */ +#endif /* HAVE_LONG_LONG */ case ECPGt_float: if (!(mallocedval = ecpg_alloc(asize * 25, lineno))) return false; |