From 33e0b9ea516b74bb3ea80efa625f951c4f3fcdea Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Tue, 4 May 2010 09:02:11 -0700 Subject: [PATCH] fix bug in show_variable method of AR adapter --- lib/active_record/connection_adapters/mysql2_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_record/connection_adapters/mysql2_adapter.rb b/lib/active_record/connection_adapters/mysql2_adapter.rb index ac1b175..7624443 100644 --- a/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -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)