1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/connection_adapters
Yasuo Honda a9e6e6e07a Map :bigint as NUMBER(19) sql_type by using :limit => 19 for Oracle
since NUMBER(8) is not enough to store the maximum number of bigint.
Oracle NUMBER(p,0) as handled as integer
because there is no dedicated integer sql data type exist in Oracle database.

Also NUMBER(p,s) precision can take up to 38. p means the number of digits, not the byte length.
bigint type needs 19 digits as follows.

	$ irb
	2.2.2 :001 > limit = 8
	 => 8
	2.2.2 :002 > maxvalue_of_bigint = 1 << ( limit * 8 - 1)
	 => 9223372036854775808
	2.2.2 :003 > puts maxvalue_of_bigint.to_s.length
	19
	 => nil
	2.2.2 :004 >
2015-06-01 12:23:20 +00:00
..
adapter_leasing_test.rb AR::ConPool - establish connections outside of critical section. 2015-05-14 02:29:59 +02:00
connection_handler_test.rb Add schema cache to new connection pool after fork 2015-05-17 00:57:52 +01:00
connection_specification_test.rb
merge_and_resolve_default_url_config_test.rb Revert "Merge pull request #19404 from dmathieu/remove_rack_env" 2015-03-20 08:14:11 -07:00
mysql_type_lookup_test.rb fix MySQL enum type lookup with values matching another type. Closes #17402. 2014-10-29 09:43:56 +01:00
quoting_test.rb
schema_cache_test.rb Deprecate automatic counter caches on has_many :through 2014-06-26 07:24:34 -06:00
type_lookup_test.rb Map :bigint as NUMBER(19) sql_type by using :limit => 19 for Oracle 2015-06-01 12:23:20 +00:00