fix bug in show_variable method of AR adapter
This commit is contained in:
parent
dfca514562
commit
33e0b9ea51
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue