aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/image.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-02-29 13:26:12 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-02-29 13:26:12 +0900
commit3cc62a977626bc9964d9f4bad85a997edf3a02c8 (patch)
tree33fd70b6f41cf853daf7f3e59e377d9c73776cc0 /activerecord/test/models/image.rb
parentcaa6fb3eb40e40b7c7487a1815482951cd162d7a (diff)
downloadrails-3cc62a977626bc9964d9f4bad85a997edf3a02c8.tar.gz
rails-3cc62a977626bc9964d9f4bad85a997edf3a02c8.tar.bz2
rails-3cc62a977626bc9964d9f4bad85a997edf3a02c8.zip
Fix `NoMethodError: undefined method `fields' for nil:NilClass`
Currently `exec_query` raises `NoMethodError` when executing no result queries (`INSERT`, `UPDATE`, `DELETE`, and all DDL) in mysql2 adapter. ``` irb(main):002:0> conn.execute("create table t(a int)") (43.3ms) create table t(a int) => nil irb(main):003:0> conn.execute("insert into t values (1)") (19.3ms) insert into t values (1) => nil irb(main):004:0> conn.exec_query("insert into t values (1)") SQL (28.6ms) insert into t values (1) NoMethodError: undefined method `fields' for nil:NilClass ```
Diffstat (limited to 'activerecord/test/models/image.rb')
0 files changed, 0 insertions, 0 deletions