diff options
author | Zachary Scott <e@zzak.io> | 2014-11-24 11:42:41 -0800 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-11-24 11:42:41 -0800 |
commit | 2356714cc5447fc72998fe8a47657b04c41e6bf6 (patch) | |
tree | 31ff1f6a513d3f890372cab051586679759876e6 /activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb | |
parent | 96393c53f2de4afd4632a1f7c0e72c8d38e0cdbf (diff) | |
parent | 83821e2c4a32b17b153fcbcb247dec6e32f47284 (diff) | |
download | rails-2356714cc5447fc72998fe8a47657b04c41e6bf6.tar.gz rails-2356714cc5447fc72998fe8a47657b04c41e6bf6.tar.bz2 rails-2356714cc5447fc72998fe8a47657b04c41e6bf6.zip |
Merge pull request #17748 from claudiob/remove-unwanted-comments-from-documentation
Mark comments that should not be in the docs [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb index 5b83131f0e..d19bd80576 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -66,7 +66,9 @@ module ActiveRecord exception.error_number if exception.respond_to?(:error_number) end + #-- # QUOTING ================================================== + #++ def quote_string(string) @connection.escape(string) @@ -80,7 +82,9 @@ module ActiveRecord end end + #-- # CONNECTION MANAGEMENT ==================================== + #++ def active? return false unless @connection @@ -104,7 +108,9 @@ module ActiveRecord end end + #-- # DATABASE STATEMENTS ====================================== + #++ def explain(arel, binds = []) sql = "EXPLAIN #{to_sql(arel, binds.dup)}" |