Permalink
Browse files

Merge pull request #8 from mnaberez/fix_default_to_a_warning

Use select_rows instead to fix default to_a warning
  • Loading branch information...
2 parents 63a87d9 + 9598401 commit 63fa3e2bb4846601d11974e80eb1fae97038f32e @mperham committed Oct 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/deadlock_retry.rb
@@ -72,7 +72,7 @@ def check_innodb_status_available
return unless DeadlockRetry.innodb_status_cmd == nil
begin
- mysql_version = self.connection.execute('show variables like \'version\'').to_a[0][1]
+ mysql_version = self.connection.select_rows('show variables like \'version\'')[0][1]
cmd = if mysql_version < '5.5'
'show innodb status'
else

0 comments on commit 63fa3e2

Please sign in to comment.