fix bug in show_variable method of AR adapter

This commit is contained in:
Brian Lopez 2010-05-04 09:02:11 -07:00
parent dfca514562
commit 33e0b9ea51
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ module ActiveRecord
def show_variable(name) def show_variable(name)
variables = select_all("SHOW VARIABLES LIKE '#{name}'") variables = select_all("SHOW VARIABLES LIKE '#{name}'")
variables.first[:Value] unless variables.empty? variables.first['Value'] unless variables.empty?
end end
def pk_and_sequence_for(table) def pk_and_sequence_for(table)