instance method
show_variable
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12Signature
show_variable(name)
SHOW VARIABLES LIKE ‘name’
Parameters
-
namereq
Source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 774
def show_variable(name)
variables = select_all("SHOW VARIABLES LIKE '#{name}'")
variables.first['Value'] unless variables.empty?
end
Defined in activerecord/lib/active_record/connection_adapters/mysql_adapter.rb line 774
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mysql::Stmt::ActiveRecord::ConnectionAdapters::MysqlAdapter