Skip to content

Commit 3d067c5

Browse files
committed
In 020_createdb.pl, change order of command-line arguments.
Linux thinks that something like "createdb foo -S bar" is perfectly fine, but Windows wants the options to precede any bare arguments, so we must write "createdb -S bar foo" for portability. Per reports from CI, the buildfarm, and Andres. Discussion: http://postgr.es/m/20220329173536.7d2ywdatsprxl4x6@alap3.anarazel.de
1 parent 9c08aea commit 3d067c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/scripts/t/020_createdb.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@
115115

116116
# Check database creation strategy
117117
$node->issues_sql_like(
118-
[ 'createdb', '-T', 'foobar2', 'foobar6', '-S', 'wal_log'],
118+
[ 'createdb', '-T', 'foobar2', '-S', 'wal_log', 'foobar6' ],
119119
qr/statement: CREATE DATABASE foobar6 STRATEGY wal_log TEMPLATE foobar2/,
120120
'create database with WAL_LOG strategy');
121121

122122
$node->issues_sql_like(
123-
[ 'createdb', '-T', 'foobar2', 'foobar7', '-S', 'file_copy'],
123+
[ 'createdb', '-T', 'foobar2', '-S', 'file_copy', 'foobar7' ],
124124
qr/statement: CREATE DATABASE foobar7 STRATEGY file_copy TEMPLATE foobar2/,
125125
'create database with FILE_COPY strategy');
126126

0 commit comments

Comments
 (0)