Commit 72786e04 authored by Michael Meskes's avatar Michael Meskes

*** empty log message ***

parent 4c2071c8
...@@ -794,5 +794,10 @@ Thu Jan 27 08:12:05 CET 2000 ...@@ -794,5 +794,10 @@ Thu Jan 27 08:12:05 CET 2000
Mon Feb 14 10:35:18 CET 2000 Mon Feb 14 10:35:18 CET 2000
- Synced preproc.y with gram.y. - 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 library version to 3.0.10.
- Set ecpg version to 2.7.0. - Set ecpg version to 2.7.0.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.21 2000/01/26 05:58:41 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.22 2000/02/15 12:15:54 meskes Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -80,6 +80,7 @@ static ScanKeyword ScanKeywords[] = { ...@@ -80,6 +80,7 @@ static ScanKeyword ScanKeywords[] = {
{"cycle", CYCLE}, {"cycle", CYCLE},
{"database", DATABASE}, {"database", DATABASE},
{"day", DAY_P}, {"day", DAY_P},
{"dec", DEC},
{"decimal", DECIMAL}, {"decimal", DECIMAL},
{"declare", DECLARE}, {"declare", DECLARE},
{"default", DEFAULT}, {"default", DEFAULT},
...@@ -212,6 +213,7 @@ static ScanKeyword ScanKeywords[] = { ...@@ -212,6 +213,7 @@ static ScanKeyword ScanKeywords[] = {
{"sequence", SEQUENCE}, {"sequence", SEQUENCE},
{"serial", SERIAL}, {"serial", SERIAL},
{"serializable", SERIALIZABLE}, {"serializable", SERIALIZABLE},
{"session_user", SESSION_USER},
{"set", SET}, {"set", SET},
{"setof", SETOF}, {"setof", SETOF},
{"share", SHARE}, {"share", SHARE},
......
This diff is collapsed.
all: stp.so test1 test2 test3 test4 test5 perftest 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 /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../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/usr/include/postgresql -lecpg -lpq -lcrypt
#ECPG=/usr/local/pgsql/bin/ecpg #ECPG=/usr/local/pgsql/bin/ecpg
ECPG=../preproc/ecpg -I../include #ECPG=../preproc/ecpg -I../include
#ECPG=/usr/bin/ecpg -I/usr/include/postgresql ECPG=/usr/bin/ecpg -I/usr/include/postgresql
.SUFFIXES: .pgc .c .SUFFIXES: .pgc .c
...@@ -22,7 +22,7 @@ perftest: perftest.c ...@@ -22,7 +22,7 @@ perftest: perftest.c
stp.so: stp.c stp.so: stp.c
cc -fPIC -I../include -I/usr/include/postgresql -c -o stp.o 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: clean:
......
...@@ -7,7 +7,7 @@ int my_fun (void) ...@@ -7,7 +7,7 @@ int my_fun (void)
EXEC SQL END DECLARE SECTION; EXEC SQL END DECLARE SECTION;
FILE *dbgs; FILE *dbgs;
if ((dbgs = fopen("/tmp/log", "w")) != NULL) if ((dbgs = fopen("log", "w")) != NULL)
ECPGdebug(1, dbgs); ECPGdebug(1, dbgs);
EXEC SQL WHENEVER SQLERROR GOTO Error; EXEC SQL WHENEVER SQLERROR GOTO Error;
......
...@@ -51,6 +51,8 @@ static void ErrorExit (void) ...@@ -51,6 +51,8 @@ static void ErrorExit (void)
sqlprint(); sqlprint();
EXEC SQL ROLLBACK;
EXEC SQL DROP TABLE tab; EXEC SQL DROP TABLE tab;
EXEC SQL DROP FUNCTION my_fun (); EXEC SQL DROP FUNCTION my_fun ();
EXEC SQL COMMIT; EXEC SQL COMMIT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment