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
e11136e4
Commit
e11136e4
authored
Sep 26, 2003
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segfault after error in parsing precision argument.
parent
8d108fb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+5
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
e11136e4
...
@@ -1656,6 +1656,11 @@ Tue Sep 23 14:50:45 CEST 2003
...
@@ -1656,6 +1656,11 @@ Tue Sep 23 14:50:45 CEST 2003
- Changed struct definition handling so "struct foo {}" always gets
- Changed struct definition handling so "struct foo {}" always gets
defined.
defined.
Fri Sep 26 17:14:07 CEST 2003
- Incorrect datatype with precision argument should not create a
segfault.
- Set ecpg version to 3.0.0
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
- Set pgtypes library to 1.0.0
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
e11136e4
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.26
0 2003/09/24 19:05:32 momjian
Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.26
1 2003/09/26 15:16:29 meskes
Exp $ */
/* Copyright comment */
/* Copyright comment */
%{
%{
...
@@ -4785,7 +4785,11 @@ common_type: simple_type
...
@@ -4785,7 +4785,11 @@ common_type: simple_type
$$.type_str = make_str("decimal");
$$.type_str = make_str("decimal");
}
}
else
else
{
mmerror(PARSE_ERROR, ET_ERROR, "Only numeric/decimal have precision/scale argument");
mmerror(PARSE_ERROR, ET_ERROR, "Only numeric/decimal have precision/scale argument");
$$.type_enum = ECPGt_numeric;
$$.type_str = make_str("numeric");
}
$$.type_dimension = make_str("-1");
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_index = make_str("-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