Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a0de6e7

Browse files
committed
Specifying a dbname should override the default database, not add to it.
Fixes buildfarm failures on contribcheck.
1 parent 8c0d308 commit a0de6e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/regress/pg_regress.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.34 2007/06/12 13:26:45 mha Exp $
14+
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.35 2007/06/12 13:54:58 mha Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -1794,6 +1794,10 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
17941794
printf("pg_regress (PostgreSQL %s)\n", PG_VERSION);
17951795
exit_nicely(0);
17961796
case 1:
1797+
/* If a default database was specified, we need to remove it before we add
1798+
* the specified one.
1799+
*/
1800+
free_stringlist(&dblist);
17971801
split_to_stringlist(strdup(optarg), ", ", &dblist);
17981802
break;
17991803
case 2:

0 commit comments

Comments
 (0)