Permalink
Browse files

Use select_rows instead to fix default to_a warning

  • Loading branch information...
1 parent 63a87d9 commit 9598401b94cd2d021abfefca2c0d59c2f39a509f @mnaberez mnaberez 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 9598401

Please sign in to comment.