diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-02-12 21:49:24 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-02-12 21:49:24 +0000 |
commit | d99df62c31fe60da5fec3a61eedba90635f5e485 (patch) | |
tree | 7708583f2c07652527ff645dab2d818ae968b018 | |
parent | cbb4ab99a89147944d9f6f6764575b872bdb641f (diff) | |
download | postgresql-d99df62c31fe60da5fec3a61eedba90635f5e485.tar.gz postgresql-d99df62c31fe60da5fec3a61eedba90635f5e485.zip |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> OK, add #include <stdio.h> to the file. That should fix it.
Seems unlikely, since libpq-fe.h already includes <stdio.h>.
The real problem here is that the code is wrong: it's passing NULL
to an int parameter.
regards, tom lane
-rw-r--r-- | contrib/oid2name/oid2name.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index 9169c9fd243..1eaa73335c0 100644 --- a/contrib/oid2name/oid2name.c +++ b/contrib/oid2name/oid2name.c @@ -6,7 +6,6 @@ */ -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> @@ -316,7 +315,7 @@ void sql_exec_dumpdb(PGconn *conn) /* get the oid and database name from the system pg_database table */ sprintf(todo, "select oid,datname from pg_database"); - sql_exec(conn, todo, NULL); + sql_exec(conn, todo, 0); } /* display all tables in whatever db we are connected to. don't display the @@ -333,7 +332,7 @@ void sql_exec_dumptable(PGconn *conn, int systables) else sprintf(todo, "select relfilenode,relname from pg_class where relname not like 'pg_%%' order by relname"); - sql_exec(conn, todo, NULL); + sql_exec(conn, todo, 0); } /* display the oid for a given tablename for whatever db we are connected |