diff options
author | Max Lapshin <max@maxidoors.ru> | 2009-01-14 16:08:57 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-02-06 13:39:07 +1300 |
commit | 9c6bde58c52f63d9e40979b89bc5db0c786159da (patch) | |
tree | 6e7206aa887a81bfaf1105b777f36e0b29a82b34 | |
parent | db5d6950169f8f10b6aec85faa2c38e0c57315c7 (diff) | |
download | rails-9c6bde58c52f63d9e40979b89bc5db0c786159da.tar.gz rails-9c6bde58c52f63d9e40979b89bc5db0c786159da.tar.bz2 rails-9c6bde58c52f63d9e40979b89bc5db0c786159da.zip |
Fixed tests of postgresql money insertion when non-C locale
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Signed-off-by: Michael Koziarski <michael@koziarski.com>
-rw-r--r-- | activerecord/test/cases/datatype_test_postgresql.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/datatype_test_postgresql.rb b/activerecord/test/cases/datatype_test_postgresql.rb index bff092b5d7..88fb6f7384 100644 --- a/activerecord/test/cases/datatype_test_postgresql.rb +++ b/activerecord/test/cases/datatype_test_postgresql.rb @@ -26,6 +26,7 @@ class PostgresqlDataTypeTest < ActiveRecord::TestCase def setup @connection = ActiveRecord::Base.connection + @connection.execute("set lc_monetary = 'C'") @connection.execute("INSERT INTO postgresql_arrays (commission_by_quarter, nicknames) VALUES ( '{35000,21000,18000,17000}', '{foo,bar,baz}' )") @first_array = PostgresqlArray.find(1) |