mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
a9e6e6e07a
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 > |
||
---|---|---|
.. | ||
adapter_leasing_test.rb | ||
connection_handler_test.rb | ||
connection_specification_test.rb | ||
merge_and_resolve_default_url_config_test.rb | ||
mysql_type_lookup_test.rb | ||
quoting_test.rb | ||
schema_cache_test.rb | ||
type_lookup_test.rb |