Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3d9dce

Browse files
committed
Don't refer to the database name "regression" inside the regression test
scripts, to allow running the test successfully with another database name.
1 parentb11c187 commite3d9dce

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

‎src/test/regress/expected/prepare.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ SELECT name, statement, parameter_types FROM pg_prepared_statements;
5858
PREPARE q2(text) AS
5959
SELECT datname, datistemplate, datallowconn
6060
FROM pg_database WHERE datname = $1;
61-
EXECUTE q2('regression');
62-
datname | datistemplate | datallowconn
63-
------------+---------------+--------------
64-
regression | f | t
61+
EXECUTE q2('postgres');
62+
datname | datistemplate | datallowconn
63+
----------+---------------+--------------
64+
postgres | f | t
6565
(1 row)
6666

6767
PREPARE q3(text, int, float, boolean, oid, smallint) AS

‎src/test/regress/expected/privileges.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ SELECT has_table_privilege('regressuser1', 'atest4', 'SELECT WITH GRANT OPTION')
582582
(1 row)
583583

584584
-- clean up
585-
\c regression
585+
\c
586586
DROP FUNCTION testfunc2(int);
587587
DROP FUNCTION testfunc4(boolean);
588588
DROP VIEW atestv1;

‎src/test/regress/expected/temp.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SELECT * FROM temptest;
4242
DROP TABLE temptest;
4343
-- test temp table deletion
4444
CREATE TEMP TABLE temptest(col int);
45-
\c regression
45+
\c
4646
SELECT * FROM temptest;
4747
ERROR: relation "temptest" does not exist
4848
-- Test ON COMMIT DELETE ROWS

‎src/test/regress/sql/prepare.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PREPARE q2(text) AS
3434
SELECT datname, datistemplate, datallowconn
3535
FROM pg_databaseWHERE datname= $1;
3636

37-
EXECUTE q2('regression');
37+
EXECUTE q2('postgres');
3838

3939
PREPARE q3(text,int, float,boolean,oid,smallint)AS
4040
SELECT*FROM tenk1WHERE string4= $1AND (four= $2OR

‎src/test/regress/sql/privileges.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ SELECT has_table_privilege('regressuser1', 'atest4', 'SELECT WITH GRANT OPTION')
334334

335335
-- clean up
336336

337-
\c regression
337+
\c
338338

339339
DROPFUNCTION testfunc2(int);
340340
DROPFUNCTION testfunc4(boolean);

‎src/test/regress/sql/temp.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ DROP TABLE temptest;
4747

4848
CREATE TEMP TABLE temptest(colint);
4949

50-
\c regression
50+
\c
5151

5252
SELECT*FROM temptest;
5353

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp