mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
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:
parent
b11c1876ed
commit
e3d9dceef6
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -47,7 +47,7 @@ DROP TABLE temptest;
|
||||
|
||||
CREATE TEMP TABLE temptest(col int);
|
||||
|
||||
\c regression
|
||||
\c
|
||||
|
||||
SELECT * FROM temptest;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user