From: Fabien Wernli Date: Thu, 16 Dec 2010 13:33:42 +0000 (+0100) Subject: force NLS_{LANG,COMP,SORT} for improved predictability X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=994dc91b510ccb6d25438bd2dd0e308a0a46d4c5;p=dbsrgits%2FDBIx-Class-Historic.git force NLS_{LANG,COMP,SORT} for improved predictability --- diff --git a/t/73oracle.t b/t/73oracle.t index cf49459..4627624 100644 --- a/t/73oracle.t +++ b/t/73oracle.t @@ -40,6 +40,10 @@ use lib qw(t/lib); use DBICTest; use DBIC::SqlMakerTest; +$ENV{NLS_SORT} = "BINARY"; +$ENV{NLS_COMP} = "BINARY"; +$ENV{NLS_LANG} = "AMERICAN"; + my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_ORA_${_}" } qw/DSN USER PASS/}; # optional: diff --git a/t/73oracle_hq.t b/t/73oracle_hq.t index 5e4c0b2..d79fae3 100644 --- a/t/73oracle_hq.t +++ b/t/73oracle_hq.t @@ -7,6 +7,10 @@ use Test::More; use lib qw(t/lib); use DBIC::SqlMakerTest; +$ENV{NLS_SORT} = "BINARY"; +$ENV{NLS_COMP} = "BINARY"; +$ENV{NLS_LANG} = "AMERICAN"; + my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_ORA_${_}" } qw/DSN USER PASS/}; plan skip_all => 'Set $ENV{DBICTEST_ORA_DSN}, _USER and _PASS to run this test.' diff --git a/t/inflate/datetime_oracle.t b/t/inflate/datetime_oracle.t index 84533e8..d118a0c 100644 --- a/t/inflate/datetime_oracle.t +++ b/t/inflate/datetime_oracle.t @@ -19,6 +19,8 @@ plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missin $ENV{NLS_DATE_FORMAT} = 'DD-MON-YY'; $ENV{NLS_TIMESTAMP_FORMAT} = 'YYYY-MM-DD HH24:MI:SSXFF'; $ENV{NLS_LANG} = 'AMERICAN_AMERICA.WE8ISO8859P1'; +$ENV{NLS_SORT} = "BINARY"; +$ENV{NLS_COMP} = "BINARY"; my $schema = DBICTest::Schema->connect($dsn, $user, $pass);