提交 ef0a3d0d 编写于 作者: Y Yasuo Honda

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\""
```
上级 ebc6b171
......@@ -1489,7 +1489,7 @@ def test_default_values_are_deeply_dupped
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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册