Commit 0f865e17 authored by Michael Meskes's avatar Michael Meskes

Applied Lee Kindness' patch to fix one of memory allocation with floating point numbers.

parent 0484700c
...@@ -1260,6 +1260,11 @@ Mon May 20 10:58:36 CEST 2002 ...@@ -1260,6 +1260,11 @@ Mon May 20 10:58:36 CEST 2002
- Fixed some parser bugs. - Fixed some parser bugs.
- Removed some simple rules to work arounf bison limit for now. - Removed some simple rules to work arounf bison limit for now.
- Update c_keywords.c to reflect changes in keywords.c. - Update c_keywords.c to reflect changes in keywords.c.
Wed Jun 12 14:04:11 CEST 2002
- Applied Lee Kindness' patch to fix one of memory allocation with
floating point numbers.
- Set ecpg version to 2.10.0. - Set ecpg version to 2.10.0.
- Set library version to 3.4.0. - Set library version to 3.4.0.
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.36 2002/01/13 08:52:08 meskes Exp $ */ /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.37 2002/06/12 12:06:53 meskes Exp $ */
/* /*
* The aim is to get a simpler inteface to the database routines. * The aim is to get a simpler inteface to the database routines.
...@@ -700,7 +700,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var, ...@@ -700,7 +700,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
break; break;
#endif /* HAVE_LONG_LONG_INT_64 */ #endif /* HAVE_LONG_LONG_INT_64 */
case ECPGt_float: case ECPGt_float:
if (!(mallocedval = ECPGalloc(var->arrsize * 20, stmt->lineno))) if (!(mallocedval = ECPGalloc(var->arrsize * 21, stmt->lineno)))
return false; return false;
if (var->arrsize > 1) if (var->arrsize > 1)
...@@ -720,7 +720,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var, ...@@ -720,7 +720,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
break; break;
case ECPGt_double: case ECPGt_double:
if (!(mallocedval = ECPGalloc(var->arrsize * 20, stmt->lineno))) if (!(mallocedval = ECPGalloc(var->arrsize * 21, stmt->lineno)))
return false; return false;
if (var->arrsize > 1) if (var->arrsize > 1)
...@@ -740,7 +740,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var, ...@@ -740,7 +740,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
break; break;
case ECPGt_bool: case ECPGt_bool:
if (!(mallocedval = ECPGalloc(var->arrsize * 20, stmt->lineno))) if (!(mallocedval = ECPGalloc(var->arrsize * 2, stmt->lineno)))
return false; return false;
if (var->arrsize > 1) if (var->arrsize > 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment