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
f8257734
Commit
f8257734
authored
Feb 18, 2004
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing rule for DOUBLE variables.
parent
4553e1d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+5
-15
No files found.
src/interfaces/ecpg/preproc/preproc.y
View file @
f8257734
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.27
4 2004/02/16 07:41:54
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.27
5 2004/02/18 08:42:02
meskes Exp $ */
/* Copyright comment */
%{
...
...
@@ -551,7 +551,7 @@ add_additional_variables(char *name, bool insert)
%type <dtype_enum> descriptor_item desc_header_item
%type <type> var_type
single_vt_type
%type <type> var_type
%type <action> action
...
...
@@ -4416,7 +4416,7 @@ single_vt_declaration: type_declaration { $$ = $1; }
;
single_var_declaration: storage_declaration
single_vt
_type
var
_type
{
actual_type[struct_level].type_enum = $2.type_enum;
actual_type[struct_level].type_dimension = $2.type_dimension;
...
...
@@ -4427,7 +4427,7 @@ single_var_declaration: storage_declaration
{
$$ = cat_str(5, actual_startline[struct_level], $1, $2.type_str, $4, make_str(";\n"));
}
|
single_vt
_type
|
var
_type
{
actual_type[struct_level].type_enum = $1.type_enum;
actual_type[struct_level].type_dimension = $1.type_dimension;
...
...
@@ -4460,17 +4460,6 @@ ecpg_interval: opt_interval { $$ = $1; }
| MONTH_P TO MONTH_P { $$ = make_str("month to month"); }
;
single_vt_type: var_type
| DOUBLE_P
{
$$.type_enum = ECPGt_double;
$$.type_str = make_str("double");
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
}
;
/*
* variable declaration inside exec sql declare block
*/
...
...
@@ -4960,6 +4949,7 @@ signed_type: SQL_SHORT { $$ = ECPGt_short; }
}
| SQL_BOOL { $$ = ECPGt_bool; }
| CHAR_P { $$ = ECPGt_char; }
| DOUBLE_P { $$ = ECPGt_double; }
;
opt_signed: SQL_SIGNED
...
...
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