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

Commit26db818

Browse files
committed
It looks like the multibyte regress tests only work if both
the database encoding and the client encoding match the encoding expectedby the test. So, force both of them to be set from the MULTIBYTEenvironment var. This allows regress tests to be run successfully inmultibyte environments other than the compiled-in default.
1 parentd69344c commit26db818

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

‎src/test/regress/regress.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.25 1999/04/2521:56:19 tgl Exp $
2+
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.26 1999/04/2523:30:31 tgl Exp $
33
#
44
if [$#-eq 0 ]
55
then
@@ -47,22 +47,24 @@ echo "=============== destroying old regression database... ================="
4747
destroydb$HOST regression
4848

4949
echo"=============== creating new regression database... ================="
50-
createdb$HOST regression
51-
if [$?-ne 0 ];then
52-
echo createdb failed
53-
exit 1
54-
fi
55-
56-
echo"=============== running regression queries... ================="
57-
echo""> regression.diffs
5850
if [-n"$MULTIBYTE" ];then
5951
mbtests=`echo$MULTIBYTE| tr"[A-Z]""[a-z]"`
6052
PGCLIENTENCODING="$MULTIBYTE"
6153
export PGCLIENTENCODING
54+
ENCODINGOPT="-E$MULTIBYTE"
6255
else
6356
mbtests=""
6457
unset PGCLIENTENCODING
58+
ENCODINGOPT=""
6559
fi
60+
createdb$ENCODINGOPT$HOST regression
61+
if [$?-ne 0 ];then
62+
echo createdb failed
63+
exit 1
64+
fi
65+
66+
echo"=============== running regression queries... ================="
67+
echo""> regression.diffs
6668
foriin`cat sql/tests`$mbtests
6769
do
6870
$ECHO_N"${i} .."$ECHO_C

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp