"bitsweat" made AR/Oracle cry...
http://dev.rubyonrails.org/changeset/4596
------------------------------------------------------------------------
r4596 | bitsweat | 2006-07-08 13:35:56 -0700 (Sat, 08 Jul 2006) | 11 lines
r4704@asus: jeremy | 2006-06-27 12:00:19 -0700
decimal
r4705@asus: jeremy | 2006-06-27 12:20:47 -0700
current_adapter? checks whether any of its arguments is the name of the current
adapter class
r4834@asus: jeremy | 2006-07-08 13:08:24 -0700
Room to float.
r4835@asus: jeremy | 2006-07-08 13:09:18 -0700
Give lock test a few chances.
r4836@asus: jeremy | 2006-07-08 13:12:05 -0700
Numeric and decimal columns map to BigDecimal instead of Float. Those with
scale 0 map to Integer. Closes #5454.
------------------------------------------------------------------------
U activerecord/test/locking_test.rb
U activerecord/test/defaults_test.rb
U activerecord/test/base_test.rb
U activerecord/test/schema_dumper_test.rb
U activerecord/test/calculations_test.rb
U activerecord/test/migration_test.rb
A activerecord/test/fixtures/migrations_with_decimal
A activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb
U activerecord/test/fixtures/db_definitions/frontbase.sql
U activerecord/test/fixtures/db_definitions/frontbase.drop.sql
U activerecord/test/fixtures/db_definitions/firebird.drop.sql
U activerecord/test/fixtures/db_definitions/sqlserver.drop.sql
U activerecord/test/fixtures/db_definitions/sybase.drop.sql
U activerecord/test/fixtures/db_definitions/openbase.sql
U activerecord/test/fixtures/db_definitions/sqlite.sql
U activerecord/test/fixtures/db_definitions/sqlite.drop.sql
U activerecord/test/fixtures/db_definitions/oracle.sql
U activerecord/test/fixtures/db_definitions/mysql.sql
U activerecord/test/fixtures/db_definitions/db2.sql
U activerecord/test/fixtures/db_definitions/oracle.drop.sql
U activerecord/test/fixtures/db_definitions/mysql.drop.sql
U activerecord/test/fixtures/db_definitions/db2.drop.sql
U activerecord/test/fixtures/db_definitions/firebird.sql
U activerecord/test/fixtures/db_definitions/sqlserver.sql
U activerecord/test/fixtures/db_definitions/sybase.sql
U activerecord/test/fixtures/db_definitions/postgresql.sql
U activerecord/test/fixtures/db_definitions/postgresql.drop.sql
U activerecord/test/validations_test.rb
U activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
U
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
U
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
U activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
U activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
U activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb
U activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
U activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
U activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
U activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb
U activerecord/lib/active_record/connection_adapters/sybase_adapter.rb
U activerecord/lib/active_record/connection_adapters/db2_adapter.rb
U activerecord/lib/active_record/connection_adapters/openbase_adapter.rb
U activerecord/lib/active_record/migration.rb
U activerecord/lib/active_record/base.rb
U activerecord/lib/active_record/schema_dumper.rb
U activerecord/CHANGELOG
U .
Updated to revision 4596.
1) Failure:
test_default_values(BasicsTest) [./test/base_test.rb:555]:
<3> expected but was
<"3">.
2) Failure:
test_mass_assignment_protection(BasicsTest) [./test/base_test.rb:627]:
<1> expected but was
<"1">.
3) Failure:
test_numeric_fields(BasicsTest) [./test/base_test.rb:938]:
<1586.43>
expected to be kind_of?
<BigDecimal> but was
<Float>.
4) Failure:
test_to_xml(BasicsTest) [./test/base_test.rb:1269]:
<false> is not true.
5) Failure:
test_belongs_to_counter(BelongsToAssociationsTest)
[./test/associations_test.rb:919]:
No replies yet.
<0> expected but was
<"0">.
6) Failure:
test_counter_cache(BelongsToAssociationsTest)
[./test/associations_test.rb:1018]:
<0> expected but was
<"0">.
7) Failure:
test_custom_counter_cache(BelongsToAssociationsTest)
[./test/associations_test.rb:1032]:
<0> expected but was
<"0">.
8) Failure:
test_belongs_to_counter(DeprecatedAssociationsTest)
[./test/deprecated_associations_test.rb:236]:
No replies yet.
<0> expected but was
<"0">.
9) Error:
test_natural_adding_of_has_and_belongs_to_many(DeprecatedAssociationsTest):
ActiveRecord::RecordNotFound: Couldn''t find Developer without an ID
./test/../lib/active_record/base.rb:971:in `find_from_ids''
./test/../lib/active_record/base.rb:414:in `find''
./test/deprecated_associations_test.rb:279:in
`test_natural_adding_of_has_and_belongs_to_many''
10) Failure:
test_adding_a_collection(HasAndBelongsToManyAssociationsTest)
[./test/associations_test.rb:1263]:
<2> expected but was
<0>.
11) Failure:
test_adding_multiple(HasAndBelongsToManyAssociationsTest)
[./test/associations_test.rb:1254]:
<2> expected but was
<0>.
12) Failure:
test_habtm_adding_before_save(HasAndBelongsToManyAssociationsTest)
[./test/associations_test.rb:1309]:
<false> is not true.
13) Failure:
test_habtm_adding_before_save_with_join_attributes(HasAndBelongsToManyAssociationsTest)
[./test/associations_test.rb:1327]:
<false> is not true.
14) Error:
test_habtm_saving_multiple_relationships(HasAndBelongsToManyAssociationsTest):
ActiveRecord::RecordNotFound: Couldn''t find Developer without an ID
./test/../lib/active_record/base.rb:971:in `find_from_ids''
./test/../lib/active_record/base.rb:414:in `find''
./test/../lib/active_record/associations.rb:933:in `developer_ids=''
./test/associations_test.rb:1343:in
`test_habtm_saving_multiple_relationships''
15) Failure:
test_update_attributes_after_push_without_duplicate_join_table_rows(HasAndBelongsToManyAssociationsTest)
[./test/associations_test.rb:1590]:
<false> is not true.
16) Failure:
test_add_table_with_decimals(MigrationTest) [./test/migration_test.rb:435]:
<1586.43>
expected to be kind_of?
<BigDecimal> but was
<Float>.
17) Failure:
test_change_column(MigrationTest) [./test/migration_test.rb:367]:
<nil> is not true.
18) Failure:
test_create_table_with_defaults(MigrationTest) [./test/migration_test.rb:115]:
<1> expected but was
<"1">.
19) Error:
test_native_decimal_insert_manual_vs_automatic(MigrationTest):
ActiveRecord::StatementInvalid: OCIError: ORA-01400: cannot insert NULL into
("ARUNIT"."PEOPLE"."ID"): insert into people
(wealth) values (12345678901234567890.0123456789)
./test/../lib/active_record/connection_adapters/abstract_adapter.rb:122:in
`log''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:250:in
`execute''
./test/migration_test.rb:203:in
`test_native_decimal_insert_manual_vs_automatic''
20) Failure:
test_native_types(MigrationTest) [./test/migration_test.rb:254]:
<#<BigDecimal:45f2d894,''0.1234567890 1234567890
0123456789E20'',32(36)>> expected but was
<12345678901234567890.0123456789>.
21) Failure:
test_lock_column_is_mass_assignable(OptimisticLockingTest)
[./test/locking_test.rb:52]:
<0> expected but was
<"0">.
22) Failure:
test_lock_new(OptimisticLockingTest) [./test/locking_test.rb:23]:
<0> expected but was
<"0">.
23) Failure:
test_integer_columns(ReflectionTest) [./test/reflection_test.rb:60]:
<:integer> expected but was
<nil>.
24) Failure:
test_no_dump_errors(SchemaDumperTest) [./test/schema_dumper_test.rb:43]:
</\# Could not dump table/> expected to not match
<"# This file is autogenerated. Instead of editing this file, please use
the\n# migrations feature of ActiveRecord to incrementally modify your database,
and\n# then regenerate this schema
definition.\n\nActiveRecord::Schema.define(:version => 0) do\n\n# Could not
dump table \"accounts\" because of following StandardError\n#
Unknown type ''NUMBER'' for column ''id''\n\n#
Could not dump table \"author_addresses\" because of following
StandardError\n# Unknown type ''NUMBER(38)'' for column
''id''\n\n# Could not dump table \"author_favorites\"
because of following StandardError\n# Unknown type
''NUMBER(38)'' for column ''id''\n\n# Could not
dump table \"authors\" because of following StandardError\n# Unknown
type ''NUMBER'' for column ''id''\n\n# Could not
dump table \"auto_id_tests\" because of following StandardError\n#
Unknown type ''NUMBER'' for column ''auto