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
72786e04
Commit
72786e04
authored
Feb 15, 2000
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
4c2071c8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
210 additions
and
145 deletions
+210
-145
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/preproc/keywords.c
src/interfaces/ecpg/preproc/keywords.c
+3
-1
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+194
-138
src/interfaces/ecpg/test/Makefile
src/interfaces/ecpg/test/Makefile
+5
-5
src/interfaces/ecpg/test/stp.pgc
src/interfaces/ecpg/test/stp.pgc
+1
-1
src/interfaces/ecpg/test/test5.pgc
src/interfaces/ecpg/test/test5.pgc
+2
-0
No files found.
src/interfaces/ecpg/ChangeLog
View file @
72786e04
...
...
@@ -794,5 +794,10 @@ Thu Jan 27 08:12:05 CET 2000
Mon Feb 14 10:35:18 CET 2000
- Synced preproc.y with gram.y.
Tue Feb 15 11:14:07 CET 2000
- Synced keyword.c.
- Synced preproc.y with gram.y.
- Set library version to 3.0.10.
- Set ecpg version to 2.7.0.
src/interfaces/ecpg/preproc/keywords.c
View file @
72786e04
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.2
1 2000/01/26 05:58:41 momjian
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.2
2 2000/02/15 12:15:54 meskes
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -80,6 +80,7 @@ static ScanKeyword ScanKeywords[] = {
{
"cycle"
,
CYCLE
},
{
"database"
,
DATABASE
},
{
"day"
,
DAY_P
},
{
"dec"
,
DEC
},
{
"decimal"
,
DECIMAL
},
{
"declare"
,
DECLARE
},
{
"default"
,
DEFAULT
},
...
...
@@ -212,6 +213,7 @@ static ScanKeyword ScanKeywords[] = {
{
"sequence"
,
SEQUENCE
},
{
"serial"
,
SERIAL
},
{
"serializable"
,
SERIALIZABLE
},
{
"session_user"
,
SESSION_USER
},
{
"set"
,
SET
},
{
"setof"
,
SETOF
},
{
"share"
,
SHARE
},
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
72786e04
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/test/Makefile
View file @
72786e04
all
:
stp.so test1 test2 test3 test4 test5 perftest
#LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq -lcrypt
LDFLAGS
=
-g
-I
../include
-I
/usr/include/postgresql
-L
/usr/lib/postgresql
-L
../lib
-lecpg
-lpq
-lcrypt
#
LDFLAGS=-g -I/usr/include/postgresql -lecpg -lpq -lcrypt
#
LDFLAGS=-g -I../include -I/usr/include/postgresql -L/usr/lib/postgresql -L../lib -lecpg -lpq -lcrypt
LDFLAGS
=
-g
-I
/usr/include/postgresql
-lecpg
-lpq
-lcrypt
#ECPG=/usr/local/pgsql/bin/ecpg
ECPG
=
../preproc/ecpg
-I
../include
#
ECPG=/usr/bin/ecpg -I/usr/include/postgresql
#
ECPG=../preproc/ecpg -I../include
ECPG
=
/usr/bin/ecpg
-I
/usr/include/postgresql
.SUFFIXES
:
.pgc .c
...
...
@@ -22,7 +22,7 @@ perftest: perftest.c
stp.so
:
stp.c
cc
-fPIC
-I
../include
-I
/usr/include/postgresql
-c
-o
stp.o stp.c
cc
-shared
-Wl
,-soname,
stp.so
-o
stp.so stp.o
-lpq
-lecpg
ld
-Bdynamic
-shared
-soname
stp.so
-o
stp.so stp.o
-lpq
-lecpg
clean
:
...
...
src/interfaces/ecpg/test/stp.pgc
View file @
72786e04
...
...
@@ -7,7 +7,7 @@ int my_fun (void)
EXEC SQL END DECLARE SECTION;
FILE *dbgs;
if ((dbgs = fopen("
/tmp/
log", "w")) != NULL)
if ((dbgs = fopen("log", "w")) != NULL)
ECPGdebug(1, dbgs);
EXEC SQL WHENEVER SQLERROR GOTO Error;
...
...
src/interfaces/ecpg/test/test5.pgc
View file @
72786e04
...
...
@@ -51,6 +51,8 @@ static void ErrorExit (void)
sqlprint();
EXEC SQL ROLLBACK;
EXEC SQL DROP TABLE tab;
EXEC SQL DROP FUNCTION my_fun ();
EXEC SQL COMMIT;
...
...
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