Method: ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter#show_variable
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
#show_variable(name) ⇒ Object
SHOW VARIABLES LIKE ‘name’
582 583 584 585 586 |
# File 'activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb', line 582 def show_variable(name) query_value("SELECT @@#{name}", "SCHEMA") rescue ActiveRecord::StatementInvalid nil end |