diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-14 04:36:55 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-14 04:36:55 -0800 |
commit | 11c9fc936427453d7499a58aadcb766cc0f69ec4 (patch) | |
tree | 81fe8ad04512898b132871012fada822f73a2ed0 /activerecord/test | |
parent | ca3b4689375f0f65275407f28981c58a15d50193 (diff) | |
parent | 5bc23e4fb503e038c8e24a3a58d4eb1c323e94c8 (diff) | |
download | rails-11c9fc936427453d7499a58aadcb766cc0f69ec4.tar.gz rails-11c9fc936427453d7499a58aadcb766cc0f69ec4.tar.bz2 rails-11c9fc936427453d7499a58aadcb766cc0f69ec4.zip |
Merge pull request #3371 from yahonda/fix_ora_00932_error
Fix ORA-00932 error when trying to insert 0 to DATE type columns.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index d6c7edc461..75eb9c2bce 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -483,7 +483,7 @@ if ActiveRecord::Base.connection.supports_migrations? # Do a manual insertion if current_adapter?(:OracleAdapter) - Person.connection.execute "insert into people (id, wealth, created_at, updated_at) values (people_seq.nextval, 12345678901234567890.0123456789, 0, 0)" + Person.connection.execute "insert into people (id, wealth, created_at, updated_at) values (people_seq.nextval, 12345678901234567890.0123456789, sysdate, sysdate)" elsif current_adapter?(:OpenBaseAdapter) || (current_adapter?(:MysqlAdapter) && Mysql.client_version < 50003) #before mysql 5.0.3 decimals stored as strings Person.connection.execute "insert into people (wealth, created_at, updated_at) values ('12345678901234567890.0123456789', 0, 0)" elsif current_adapter?(:PostgreSQLAdapter) |