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
8a2aa79f
Commit
8a2aa79f
authored
Jun 17, 2003
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed several more parsing bugs.
parent
f12f8990
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
18 deletions
+22
-18
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/ecpglib/typename.c
src/interfaces/ecpg/ecpglib/typename.c
+5
-5
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+3
-3
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+10
-10
No files found.
src/interfaces/ecpg/ChangeLog
View file @
8a2aa79f
...
...
@@ -1492,6 +1492,10 @@ Sun Jun 15 11:18:58 CEST 2003
- Applied multi-threading patch by Lee Kindess <lkindness@csl.co.uk>
- Changed order of types in enum to make working with these easier.
Tue Jun 17 08:45:14 CEST 2003
- Fixed several parsing bugs.
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
...
...
src/interfaces/ecpg/ecpglib/typename.c
View file @
8a2aa79f
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.
4 2003/06/15 04:07:58 momjian
Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.
5 2003/06/17 07:28:22 meskes
Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -49,13 +49,13 @@ ECPGtype_name(enum ECPGttype typ)
case
ECPGt_char_variable
:
return
"char"
;
case
ECPGt_numeric
:
return
"
n
umeric"
;
return
"
N
umeric"
;
case
ECPGt_date
:
return
"
d
ate"
;
return
"
D
ate"
;
case
ECPGt_timestamp
:
return
"
t
imestamp"
;
return
"
T
imestamp"
;
case
ECPGt_interval
:
return
"
i
nterval"
;
return
"
I
nterval"
;
default:
abort
();
}
...
...
src/interfaces/ecpg/preproc/pgc.l
View file @
8a2aa79f
...
...
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.11
5 2003/06/16 16:58:10
meskes Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.11
6 2003/06/17 07:28:22
meskes Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -613,7 +613,7 @@ cppline {space}*#(.*\\{space})+.*
else
return S_ANYTHING;
}
<C>{ccomment} {
/* ignore */
}
<C>{ccomment} {
ECHO;
}
<C>{xch} {
char* endptr;
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
8a2aa79f
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.23
2 2003/06/16 16:58:11
meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.23
3 2003/06/17 07:28:22
meskes Exp $ */
/* Copyright comment */
%{
...
...
@@ -4417,7 +4417,7 @@ single_vt_type: common_type
else if (strcmp($1, "numeric") == 0)
{
$$.type_enum = ECPGt_numeric;
$$.type_str =
EMPTY
;
$$.type_str =
make_str("Numeric")
;
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
...
...
@@ -4425,7 +4425,7 @@ single_vt_type: common_type
else if (strcmp($1, "decimal") == 0)
{
$$.type_enum = ECPGt_numeric;
$$.type_str =
EMPTY
;
$$.type_str =
make_str("Numeric")
;
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
...
...
@@ -4457,7 +4457,7 @@ single_vt_type: common_type
else if (strcmp($1, "interval") == 0)
{
$$.type_enum = ECPGt_interval;
$$.type_str =
EMPTY
;
$$.type_str =
make_str("Interval")
;
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
...
...
@@ -4727,7 +4727,7 @@ common_type: simple_type
mmerror(PARSE_ERROR, ET_ERROR, "Only numeric/decimal have precision/scale argument");
$$.type_enum = ECPGt_numeric;
$$.type_str =
EMPTY
;
$$.type_str =
make_str("Numeric")
;
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
...
...
@@ -4771,7 +4771,7 @@ var_type: common_type
else if (strcmp($1, "numeric") == 0)
{
$$.type_enum = ECPGt_numeric;
$$.type_str =
EMPTY
;
$$.type_str =
make_str("Numeric")
;
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
...
...
@@ -4779,7 +4779,7 @@ var_type: common_type
else if (strcmp($1, "decimal") == 0)
{
$$.type_enum = ECPGt_numeric;
$$.type_str =
EMPTY
;
$$.type_str =
make_str("Numeric")
;
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
...
...
@@ -4803,7 +4803,7 @@ var_type: common_type
else if (strcmp($1, "interval") == 0)
{
$$.type_enum = ECPGt_interval;
$$.type_str =
EMPTY
;
$$.type_str =
make_str("Interval")
;
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
...
...
@@ -5048,7 +5048,7 @@ variable: opt_pointer ECPGColLabelCommon opt_array_bounds opt_initializer
$$ = cat_str(4, $1, mm_strdup($2), $3.str, $4);
break;
case ECPGt_numeric:
/*
case ECPGt_numeric:
if (atoi(dimension) < 0)
type = ECPGmake_simple_type(actual_type[struct_level].type_enum, length);
else
...
...
@@ -5070,7 +5070,7 @@ variable: opt_pointer ECPGColLabelCommon opt_array_bounds opt_initializer
$$ = cat_str(4, mm_strdup(actual_storage[struct_level]), make_str("Interval"), mm_strdup($2), $4);
else
$$ = cat_str(5, mm_strdup(actual_storage[struct_level]), make_str("Interval"), mm_strdup($2), mm_strdup(dim), $4);
break;
break;
*/
default:
if (atoi(dimension) < 0)
...
...
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