aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-12-27 23:30:21 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-12-27 23:30:21 +0900
commit7f43485508a277c43c046c5a701f6bdb6aed1ede (patch)
tree99948a51133b633e19e3427966be0298786a9078 /activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
parentbf79aa4fc14aeb2646331e767038acf0b77e9e7f (diff)
downloadrails-7f43485508a277c43c046c5a701f6bdb6aed1ede.tar.gz
rails-7f43485508a277c43c046c5a701f6bdb6aed1ede.tar.bz2
rails-7f43485508a277c43c046c5a701f6bdb6aed1ede.zip
Remove outdated comment
These `select_*` methods improved already.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
index 7fbe2307c7..96a3a44b30 100644
--- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -99,34 +99,6 @@ module ActiveRecord
# DATABASE STATEMENTS ======================================
#++
- # FIXME: re-enable the following once a "better" query_cache solution is in core
- #
- # The overrides below perform much better than the originals in AbstractAdapter
- # because we're able to take advantage of mysql2's lazy-loading capabilities
- #
- # # Returns a record hash with the column names as keys and column values
- # # as values.
- # def select_one(sql, name = nil)
- # result = execute(sql, name)
- # result.each(as: :hash) do |r|
- # return r
- # end
- # end
- #
- # # Returns a single value from a record
- # def select_value(sql, name = nil)
- # result = execute(sql, name)
- # if first = result.first
- # first.first
- # end
- # end
- #
- # # Returns an array of the values of the first column in a select:
- # # select_values("SELECT id FROM companies LIMIT 3") => [1,2,3]
- # def select_values(sql, name = nil)
- # execute(sql, name).map { |row| row.first }
- # end
-
# Returns a record hash with the column names as keys and column values
# as values.
def select_one(arel, name = nil, binds = [])