mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Okay, I've updated the ecpg parser yet again. Unfortunately it has one
remaining shift/reduce conflict. But the very same conflict is in gram.y, so I don't dig into it very much now. Anyway, I just saw that there were minor changes made to ecpg by others. Now I like that but I would prefer if I was told about that. Otherwise my version numbering and Changelog maintaining might break. Or simply change these too. :-) Also I had to add #include <errno.h> to backend/libpq/pqcomprim.c to be able to compile postgresql. Patch is attached. Since my resubscription process is still not finished yet, I still send them here. Michael
This commit is contained in:
@ -1,18 +1,18 @@
|
||||
all: test1 test2 perftest
|
||||
|
||||
LDFLAGS=-g -I ../include -I ../../libpq -L../lib -lecpg -L../../libpq -lpq -lcrypt
|
||||
LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq -lcrypt
|
||||
|
||||
test1: test1.c
|
||||
test1.c: test1.pgc
|
||||
../preproc/ecpg $?
|
||||
/usr/local/pgsql/bin/ecpg $?
|
||||
|
||||
test2: test2.c
|
||||
test2.c: test2.pgc
|
||||
../preproc/ecpg $?
|
||||
/usr/local/pgsql/bin/ecpg $?
|
||||
|
||||
perftest: perftest.c
|
||||
perftest.c:perftest.pgc
|
||||
../preproc/ecpg $?
|
||||
/usr/local/pgsql/bin/ecpg $?
|
||||
|
||||
clean:
|
||||
/bin/rm test1 test2 perftest *.c log
|
||||
|
@ -30,14 +30,14 @@ exec sql declare cur cursor for
|
||||
ECPGdebug(1, dbgs);
|
||||
|
||||
strcpy(msg, "connect");
|
||||
exec sql connect to tcp: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 char(8));
|
||||
|
||||
strcpy(msg, "insert");
|
||||
exec sql insert into meskes(name, born, age, married) values ('Petra', 19661202, 31, '19900404');
|
||||
exec sql insert into meskes(name, born, age, married) values ('Michael', 19660117, 32, '19900404');
|
||||
exec sql insert into meskes(name, born, age, married) values ('Petra', 19661202, 32, '19900404');
|
||||
exec sql insert into meskes(name, born, age, married) values ('Michael', 19660117, 33, '19900404');
|
||||
exec sql insert into meskes(name, born, age) values ('Carsten', 19910103, 7);
|
||||
exec sql insert into meskes(name, born, age) values ('Marc', 19930907, 4);
|
||||
exec sql insert into meskes(name, born, age) values ('Chris', 19970923, 0);
|
||||
|
Reference in New Issue
Block a user