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
ad5a54d1
Commit
ad5a54d1
authored
Apr 16, 1999
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
075dc252
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
15 deletions
+20
-15
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/lib/ecpglib.c
src/interfaces/ecpg/lib/ecpglib.c
+3
-8
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+6
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+6
-6
src/interfaces/ecpg/test/test2.pgc
src/interfaces/ecpg/test/test2.pgc
+1
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
ad5a54d1
...
...
@@ -559,6 +559,10 @@ Mon Apr 12 17:56:14 CEST 1999
Wed Apr 14 17:59:06 CEST 1999
- Added simple calculations for array bounds.
Fri Apr 16 18:25:18 CEST 1999
- Fixed small bug in ECPGfinish().
- Set library version to 3.0.0
- Set ecpg version to 2.6.0
src/interfaces/ecpg/lib/ecpglib.c
View file @
ad5a54d1
...
...
@@ -149,26 +149,21 @@ ECPGfinish(struct connection * act)
PQfinish
(
act
->
connection
);
/* remove act from the list */
if
(
act
==
all_connections
)
{
all_connections
=
act
->
next
;
free
(
act
->
name
);
free
(
act
);
}
else
{
struct
connection
*
con
;
for
(
con
=
all_connections
;
con
->
next
&&
con
->
next
!=
act
;
con
=
con
->
next
);
if
(
con
->
next
)
{
con
->
next
=
act
->
next
;
free
(
act
->
name
);
free
(
act
);
}
}
if
(
actual_connection
==
act
)
actual_connection
=
all_connections
;
free
(
act
->
name
);
free
(
act
);
}
else
ECPGlog
(
"ECPGfinish: called an extra time.
\n
"
);
...
...
src/interfaces/ecpg/preproc/pgc.l
View file @
ad5a54d1
...
...
@@ -533,6 +533,12 @@ cppline {space}*#.*(\\{space}*\n)*\n*
<C>";" { return(';'); }
<C>"," { return(','); }
<C>"*" { return('*'); }
<C>"%" { return('%'); }
<C>"/" { return('/'); }
<C>"+" { return('+'); }
<C>"-" { return('-'); }
<C>"(" { return('('); }
<C>")" { return(')'); }
<C>{space} { ECHO; }
<C>\{ { return('{'); }
<C>\} { return('}'); }
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
ad5a54d1
...
...
@@ -3218,12 +3218,12 @@ nest_array_bounds: '[' ']' nest_array_bounds
Iresult: Iconst { $$ = atol($1); }
| '(' Iresult ')' { $$ = $2; }
| Iresult '+' Iresult { $$ = $1 + $3
};
| Iresult '-' Iresult { $$ = $1 - $3
};
| Iresult '*' Iresult { $$ = $1 * $3
};
| Iresult '/' Iresult { $$ = $1 / $3
};
| Iresult '%' Iresult { $$ = $1 % $3
};
| Iresult '+' Iresult { $$ = $1 + $3
; }
| Iresult '-' Iresult { $$ = $1 - $3
; }
| Iresult '*' Iresult { $$ = $1 * $3
; }
| Iresult '/' Iresult { $$ = $1 / $3
; }
| Iresult '%' Iresult { $$ = $1 % $3
; }
;
/*****************************************************************************
...
...
src/interfaces/ecpg/test/test2.pgc
View file @
ad5a54d1
...
...
@@ -40,7 +40,7 @@ exec sql end declare section;
ECPGdebug(1, dbgs);
strcpy(msg, "connect");
exec sql connect to unix:postgresql://localhost:5432/mm;
exec sql connect to unix:postgresql://localhost:5432/mm;
strcpy(msg, "create");
exec sql create table meskes(name char(8), born integer, age smallint, married date, children integer);
...
...
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