1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix WARN->NOTICE in docs. Change libpgeasy connection parameters to use

PQconnectdb() style connections.
This commit is contained in:
Bruce Momjian
2000-05-18 14:24:38 +00:00
parent ba26aeebc1
commit f63ba5cd6a
18 changed files with 43 additions and 111 deletions

View File

@ -22,11 +22,14 @@ main(int argc, char **argv)
char attname[256];
char typname[256];
int count;
char optstr[256];
if (argc != 2)
halt("Usage: %s database\n", argv[0]);
connectdb(NULL, NULL, NULL, NULL, argv[1]);
snprintf(optstr, 256, "dbname=%s", argv[1]);
connectdb(optstr);
on_error_continue();
on_error_stop();