Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d7f1d3

Browse files
committed
Fix for PQsetdb port parameter due to the interface change.
PQsetdb no more recognize "" as the default port number.
1 parent 3706f08 commit 6d7f1d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/pgbench/pgbench.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.6 2000/09/29 13:53:29 petere Exp $
2+
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.7 2000/11/01 00:45:46 ishii Exp $
33
*
44
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -512,8 +512,8 @@ main(int argc, char **argv)
512512
opterr,
513513
optopt;
514514
int c;
515-
char *pghost = "";
516-
char *pgport = "";
515+
char *pghost = NULL;
516+
char *pgport = NULL;
517517
char *dbName;
518518
int is_init_mode = 0; /* initialize mode? */
519519
int is_no_vacuum = 0; /* no vacuum at all before

0 commit comments

Comments
 (0)