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
4b98d423
Commit
4b98d423
authored
Jun 26, 2006
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing braces to prevent a segfault after usage of an undeclared cursor.
parent
6bf44d51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+5
-2
No files found.
src/interfaces/ecpg/ChangeLog
View file @
4b98d423
...
...
@@ -2035,5 +2035,10 @@ Mo Jun 26 11:05:25 CEST 2006
- Added some more coverity report patches send in by Joachim Wieland
<joe@mcknight.de>.
Mo Jun 26 16:08:23 CEST 2006
- Added missing braces to prevent a segfault after usage of an
undeclared cursor.
- Set ecpg library version to 5.2.
- Set ecpg version to 4.2.1.
src/interfaces/ecpg/preproc/preproc.y
View file @
4b98d423
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.32
4 2006/06/06 11:31:55
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.32
5 2006/06/26 14:12:02
meskes Exp $ */
/* Copyright comment */
%{
...
...
@@ -292,6 +292,7 @@ add_additional_variables(char *name, bool insert)
mmerror(PARSE_ERROR, ET_ERROR, "trying to access an undeclared cursor %s\n", name);
return NULL;
}
if (insert)
{
/* add all those input variables that were given earlier
...
...
@@ -837,9 +838,11 @@ stmt: AlterDatabaseStmt { output_statement($1, 0, connection); }
struct cursor *ptr;
if ((ptr = add_additional_variables($1, true)) != NULL)
{
output_statement(mm_strdup(ptr->command), 0,
ptr->connection ? mm_strdup(ptr->connection) : NULL);
ptr->opened = true;
ptr->opened = true;
}
}
| ECPGPrepare
{
...
...
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