Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd99df62

Browse files
committed
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 NULLto an int parameter. regards, tom lane
1 parentcbb4ab9 commitd99df62

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎contrib/oid2name/oid2name.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
*/
88

9-
#include<stdio.h>
109
#include<stdlib.h>
1110
#include<unistd.h>
1211
#include<string.h>
@@ -316,7 +315,7 @@ void sql_exec_dumpdb(PGconn *conn)
316315
/* get the oid and database name from the system pg_database table */
317316
sprintf(todo,"select oid,datname from pg_database");
318317

319-
sql_exec(conn,todo,NULL);
318+
sql_exec(conn,todo,0);
320319
}
321320

322321
/* 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)
333332
else
334333
sprintf(todo,"select relfilenode,relname from pg_class where relname not like 'pg_%%' order by relname");
335334

336-
sql_exec(conn,todo,NULL);
335+
sql_exec(conn,todo,0);
337336
}
338337

339338
/* display the oid for a given tablename for whatever db we are connected

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp