Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0f865e17
Commit
0f865e17
authored
Jun 12, 2002
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied Lee Kindness' patch to fix one of memory allocation with floating point numbers.
parent
0484700c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/lib/execute.c
src/interfaces/ecpg/lib/execute.c
+4
-4
No files found.
src/interfaces/ecpg/ChangeLog
View file @
0f865e17
...
...
@@ -1260,6 +1260,11 @@ Mon May 20 10:58:36 CEST 2002
- Fixed some parser bugs.
- Removed some simple rules to work arounf bison limit for now.
- 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 library version to 3.4.0.
src/interfaces/ecpg/lib/execute.c
View file @
0f865e17
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.3
6 2002/01/13 08:52:08
meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.3
7 2002/06/12 12:06:53
meskes Exp $ */
/*
* 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,
break
;
#endif
/* HAVE_LONG_LONG_INT_64 */
case
ECPGt_float
:
if
(
!
(
mallocedval
=
ECPGalloc
(
var
->
arrsize
*
2
0
,
stmt
->
lineno
)))
if
(
!
(
mallocedval
=
ECPGalloc
(
var
->
arrsize
*
2
1
,
stmt
->
lineno
)))
return
false
;
if
(
var
->
arrsize
>
1
)
...
...
@@ -720,7 +720,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
break
;
case
ECPGt_double
:
if
(
!
(
mallocedval
=
ECPGalloc
(
var
->
arrsize
*
2
0
,
stmt
->
lineno
)))
if
(
!
(
mallocedval
=
ECPGalloc
(
var
->
arrsize
*
2
1
,
stmt
->
lineno
)))
return
false
;
if
(
var
->
arrsize
>
1
)
...
...
@@ -740,7 +740,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
break
;
case
ECPGt_bool
:
if
(
!
(
mallocedval
=
ECPGalloc
(
var
->
arrsize
*
2
0
,
stmt
->
lineno
)))
if
(
!
(
mallocedval
=
ECPGalloc
(
var
->
arrsize
*
2
,
stmt
->
lineno
)))
return
false
;
if
(
var
->
arrsize
>
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment