diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-01-23 01:27:39 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-01-23 01:27:39 +0000 |
commit | 49581f9848a22affbfc7ca48719ead843837215e (patch) | |
tree | 6a57fba50636aa69bf3d0bd9c44878d87ac3d174 /src/bin/psql/command.c | |
parent | 978d2385a8c1a265b6ff01e6b07810061118824d (diff) | |
download | postgresql-49581f9848a22affbfc7ca48719ead843837215e.tar.gz postgresql-49581f9848a22affbfc7ca48719ead843837215e.zip |
updated install file
updated date/time types doc
fixed small psql bug
removed libpq code that lower-cased db names
make notice when long identifier is truncated
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 333da8cbc93..a12d311b2e0 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Team * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.14 2000/01/22 14:20:51 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.15 2000/01/23 01:27:37 petere Exp $ */ #include <c.h> #include "command.h" @@ -1198,6 +1198,7 @@ process_file(char *filename) { FILE *fd; int result; + char *oldfilename; if (!filename) return false; @@ -1214,10 +1215,11 @@ process_file(char *filename) return false; } + oldfilename = pset.inputfile; pset.inputfile = filename; result = MainLoop(fd); fclose(fd); - pset.inputfile = NULL; + pset.inputfile = oldfilename; return (result == EXIT_SUCCESS); } |