|
11 | 11 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
12 | 12 | * Portions Copyright (c) 1994, Regents of the University of California
|
13 | 13 | *
|
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 $ |
15 | 15 | *
|
16 | 16 | *-------------------------------------------------------------------------
|
17 | 17 | */
|
@@ -1794,6 +1794,10 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
|
1794 | 1794 | printf("pg_regress (PostgreSQL %s)\n",PG_VERSION);
|
1795 | 1795 | exit_nicely(0);
|
1796 | 1796 | case1:
|
| 1797 | +/* If a default database was specified, we need to remove it before we add |
| 1798 | + * the specified one. |
| 1799 | + */ |
| 1800 | +free_stringlist(&dblist); |
1797 | 1801 | split_to_stringlist(strdup(optarg),", ",&dblist);
|
1798 | 1802 | break;
|
1799 | 1803 | case2:
|
|