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

View File

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