Don't refer to the database name "regression" inside the regression test

scripts, to allow running the test successfully with another database name.
This commit is contained in:
Peter Eisentraut 2008-07-03 16:01:10 +00:00
parent b11c1876ed
commit e3d9dceef6
6 changed files with 9 additions and 9 deletions

View File

@ -58,10 +58,10 @@ SELECT name, statement, parameter_types FROM pg_prepared_statements;
PREPARE q2(text) AS
SELECT datname, datistemplate, datallowconn
FROM pg_database WHERE datname = $1;
EXECUTE q2('regression');
datname | datistemplate | datallowconn
------------+---------------+--------------
regression | f | t
EXECUTE q2('postgres');
datname | datistemplate | datallowconn
----------+---------------+--------------
postgres | f | t
(1 row)
PREPARE q3(text, int, float, boolean, oid, smallint) AS

View File

@ -582,7 +582,7 @@ SELECT has_table_privilege('regressuser1', 'atest4', 'SELECT WITH GRANT OPTION')
(1 row)
-- clean up
\c regression
\c
DROP FUNCTION testfunc2(int);
DROP FUNCTION testfunc4(boolean);
DROP VIEW atestv1;

View File

@ -42,7 +42,7 @@ SELECT * FROM temptest;
DROP TABLE temptest;
-- test temp table deletion
CREATE TEMP TABLE temptest(col int);
\c regression
\c
SELECT * FROM temptest;
ERROR: relation "temptest" does not exist
-- Test ON COMMIT DELETE ROWS

View File

@ -34,7 +34,7 @@ PREPARE q2(text) AS
SELECT datname, datistemplate, datallowconn
FROM pg_database WHERE datname = $1;
EXECUTE q2('regression');
EXECUTE q2('postgres');
PREPARE q3(text, int, float, boolean, oid, smallint) AS
SELECT * FROM tenk1 WHERE string4 = $1 AND (four = $2 OR

View File

@ -334,7 +334,7 @@ SELECT has_table_privilege('regressuser1', 'atest4', 'SELECT WITH GRANT OPTION')
-- clean up
\c regression
\c
DROP FUNCTION testfunc2(int);
DROP FUNCTION testfunc4(boolean);

View File

@ -47,7 +47,7 @@ DROP TABLE temptest;
CREATE TEMP TABLE temptest(col int);
\c regression
\c
SELECT * FROM temptest;