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

Commit4dfb610

Browse files
committed
pg_dump: tests: Correct test condition for invalid databases
For some reason I used not_like = { pg_dumpall_dbprivs => 1, } in the testcondition of one of the tests added in inc66a7d7. That doesn't make sensefor two reasons: 1) not_like isn't a valid test condition 2) the databaseshould not be dumped in any of the tests. Due to 1), the test achieved itsgoal, but clearly the formulation is confusing. Instead use like => {}, witha comment explaining why.Reported-by: Peter Eisentraut <peter@eisentraut.org>Discussion:https://postgr.es/m/3ddf79f2-8b7b-a093-11d2-5c739bc64f86@eisentraut.orgBackpatch: 11-, likec66a7d7
1 parent5cff431 commit4dfb610

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/pg_dump/t/002_pg_dump.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,9 +1455,9 @@
14551455
CREATE DATABASE regression_invalid;
14561456
UPDATE pg_database SET datconnlimit = -2 WHERE datname = 'regression_invalid'),
14571457
regexp=>qr/^CREATE DATABASE regression_invalid/m,
1458-
not_like=> {
1459-
pg_dumpall_dbprivs=> 1,
1460-
},
1458+
1459+
# invalid databases should never be dumped
1460+
like=> {},
14611461
},
14621462

14631463
'CREATE ACCESS METHOD gist2'=> {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp