Permalink
Browse files

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>
  • Loading branch information...
1 parent db5d695 commit 9c6bde58c52f63d9e40979b89bc5db0c786159da @maxlapshin maxlapshin committed with NZKoz Jan 14, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 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)

0 comments on commit 9c6bde5

Please sign in to comment.