diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2017-11-15 17:00:51 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2017-11-15 17:40:58 +0000 |
commit | ef0a3d0dfa1b0d7ce8234c5a03db6af64f8b40e0 (patch) | |
tree | 91165a1e98e301668732b58de4fbda78afd72625 /activerecord | |
parent | ebc6b171ac4b3e8c7026c18cbb115949e8f1982f (diff) | |
download | rails-ef0a3d0dfa1b0d7ce8234c5a03db6af64f8b40e0.tar.gz rails-ef0a3d0dfa1b0d7ce8234c5a03db6af64f8b40e0.tar.bz2 rails-ef0a3d0dfa1b0d7ce8234c5a03db6af64f8b40e0.zip |
Allow test_ignored_columns_not_included_in_SELECT column names case
insensitive
i.e. Oracle database identifier is UPPERCASE unlike other databases.
```ruby
(byebug) query = Developer.all.to_sql
"SELECT \"DEVELOPERS\".\"ID\", \"DEVELOPERS\".\"NAME\", \"DEVELOPERS\".\"SALARY\", \"DEVELOPERS\".\"FIRM_ID\", \"DEVELOPERS\".\"MENTOR_ID\", \"DEVELOPERS\".\"CREATED_AT\", \"DEVELOPERS\".\"UPDATED_AT\", \"DEVELOPERS\".\"CREATED_ON\", \"DEVELOPERS\".\"UPDATED_ON\" FROM \"DEVELOPERS\""
```
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 0ae88ee6a0..d79afa2ee9 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1489,7 +1489,7 @@ class BasicsTest < ActiveRecord::TestCase end test "ignored columns not included in SELECT" do - query = Developer.all.to_sql + query = Developer.all.to_sql.downcase # ignored column refute query.include?("first_name") |