diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-07 14:34:39 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-07 14:35:11 -0800 |
commit | 9f773d66b5c52510ff5fdd27238e1763d29bcb91 (patch) | |
tree | 89ea22cdec38ead5aff14f2c633d030a57eb1b2c /activerecord/lib/active_record | |
parent | 60da34b4be009da5da460c59d10c500a76170ed5 (diff) | |
download | rails-9f773d66b5c52510ff5fdd27238e1763d29bcb91.tar.gz rails-9f773d66b5c52510ff5fdd27238e1763d29bcb91.tar.bz2 rails-9f773d66b5c52510ff5fdd27238e1763d29bcb91.zip |
mysql2 should log these sql statements
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb index acf1832938..74dd7e8491 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -418,7 +418,7 @@ module ActiveRecord def columns(table_name, name = nil) sql = "SHOW FIELDS FROM #{quote_table_name(table_name)}" columns = [] - result = execute(sql, :skip_logging) + result = execute(sql) result.each(:symbolize_keys => true, :as => :hash) { |field| columns << Mysql2Column.new(field[:Field], field[:Default], field[:Type], field[:Null] == "YES") } |