diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-27 10:47:15 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-02-12 23:57:15 +0900 |
commit | 811a4fa8eb6ceea841e61e8ac05747ffb69595ae (patch) | |
tree | 6ada1cfcf71a644d731f9ba7b55b7c06d260ee26 /activerecord/test/cases/connection_adapters/adapter_leasing_test.rb | |
parent | f7aa4c92a0a0dd609b6e07a5db256c417d0aa235 (diff) | |
download | rails-811a4fa8eb6ceea841e61e8ac05747ffb69595ae.tar.gz rails-811a4fa8eb6ceea841e61e8ac05747ffb69595ae.tar.bz2 rails-811a4fa8eb6ceea841e61e8ac05747ffb69595ae.zip |
Avoid a string value truncation in uniqueness validation
In MySQL, PostgreSQL, Oracle and SQLServer, a value over the limit
cannot be inserted or updated (See #23522).
In SQLite3, a value is inserted or updated regardless of the limit.
We should avoid a string value truncation in uniqueness validation.
Diffstat (limited to 'activerecord/test/cases/connection_adapters/adapter_leasing_test.rb')
0 files changed, 0 insertions, 0 deletions