rails/rails — pull request #7782 by yahonda (2012-09-28 20:04:44+00:00)
Title: Change query pattern case insensitive

This pull request address the failure below.
This failure happens because Oracle adapter uses upper case attribute/column name.

```ruby
$ ARCONN=oracle ruby -Itest test/cases/dirty_test.rb
Using oracle
Run options: --seed 63746

Running tests:
F................................

Finished tests in 1.533941s, 21.5132 tests/s, 116.0410 assertions/s.

1) Failure:
test_0001_partial insert(DirtyTest) [test/cases/dirty_test.rb:557]:
Query pattern(s) /first_name/ not found.
Queries:
INSERT INTO "PEOPLE" ("CREATED_AT", "FIRST_NAME", "ID", "UPDATED_AT") VALUES (:a1, :a2, :a3, :a4)

33 tests, 178 assertions, 1 failures, 0 errors, 0 skips
$
```

This fix has been tested with sqlite3, mysql, mysql2 and postgresql adapters also.