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’
579 580 581 582 583 |
# File 'activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb', line 579 def show_variable(name) query_value("SELECT @@#{name}", "SCHEMA", materialize_transactions: false, allow_retry: true) rescue ActiveRecord::StatementInvalid nil end |