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
54452833
Commit
54452833
authored
Jan 07, 2002
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed parser to accept initializing expressions starting with "(".
parent
731204e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+8
-0
src/interfaces/ecpg/test/test1.pgc
src/interfaces/ecpg/test/test1.pgc
+1
-2
src/interfaces/ecpg/test/test_init.pgc
src/interfaces/ecpg/test/test_init.pgc
+5
-4
No files found.
src/interfaces/ecpg/ChangeLog
View file @
54452833
...
...
@@ -1184,5 +1184,9 @@ Sun Dec 23 13:08:36 CET 2001
- Fixed several bugs concerning arrays of structs including a memory
allocation bug.
Mon Jan 7 12:18:01 CET 2002
- Fixed parser to accept initializing expressions starting with "(".
- Set ecpg version to 2.9.0.
- Set library version to 3.3.0.
src/interfaces/ecpg/preproc/preproc.y
View file @
54452833
...
...
@@ -5389,6 +5389,14 @@ c_stuff: c_anything { $$ = $1; }
{
$$ = cat_str(3, $1, make_str("("), make_str(")"));
}
| '(' c_stuff ')'
{
$$ = cat_str(3, make_str("("), $2, make_str(")"));
}
| '(' c_stuff ')' c_stuff
{
$$ = cat_str(4, make_str("("), $2, make_str(")"), $4);
}
;
c_list: c_term { $$ = $1; }
...
...
src/interfaces/ecpg/test/test1.pgc
View file @
54452833
#include <string.h>
exec sql include sqlca;
exec sql whenever sqlerror do PrintAndStop(msg);
/* just a test comment */
exec sql whenever sqlerror do PrintAndStop(msg);
exec sql whenever sqlwarning do warn();
static void PrintAndStop(char *msg)
...
...
src/interfaces/ecpg/test/test_init.pgc
View file @
54452833
...
...
@@ -12,7 +12,8 @@ void sqlmeldung(char *meldung, short trans)
{
}
#define NO 0
exec sql define NONO 0;
#define YES 1
#ifdef _cplusplus
...
...
@@ -24,8 +25,9 @@ namespace N
int main()
{ struct sa x,*y;
exec sql begin declare section;
int a=2;
int a=
(int)
2;
int b=2+2;
int b2=(14*7);
int d=x.member;
int g=fb(2);
int i=3^1;
...
...
@@ -38,7 +40,6 @@ long iay /* = 1L */ ;
long long iax /* = 40000000000LL */ ;
exec sql end declare section;
/* not working */
int f=fa();
#ifdef _cplusplus
...
...
@@ -57,7 +58,7 @@ exec sql whenever sqlerror do fd("50",1);
exec sql select now();
exec sql whenever sqlerror do fe(ENUM0);
exec sql select now();
/* ex ec sql whenever sqlerror do sqlmeldung(NULL,NO); */
exec sql whenever sqlerror do sqlmeldung(NULL, NONO);
exec sql select now();
return 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