aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2013-12-17 01:56:35 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2013-12-17 01:56:42 -0700
commitc28d0f2031d31aeb5289b73acbb5c1adb7bd71d4 (patch)
treea56bb40b2373d4055b097059cfacc6bf76a9a3ea
parenteeda62eac4c8f1e7584ba20da9bc365211b88edb (diff)
downloadrails-c28d0f2031d31aeb5289b73acbb5c1adb7bd71d4.tar.gz
rails-c28d0f2031d31aeb5289b73acbb5c1adb7bd71d4.tar.bz2
rails-c28d0f2031d31aeb5289b73acbb5c1adb7bd71d4.zip
MySQL: remove the old-school 'packets out of order' message
Blast from the past, MySQL 4 era, when the password hashing style changed.
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
index 59a788397e..7768c24967 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -303,12 +303,6 @@ module ActiveRecord
else
log(sql, name) { @connection.query(sql) }
end
- rescue ActiveRecord::StatementInvalid => exception
- if exception.message.split(":").first =~ /Packets out of order/
- raise ActiveRecord::StatementInvalid.new("'Packets out of order' error was received from the database. Please update your mysql bindings (gem install mysql) and read http://dev.mysql.com/doc/mysql/en/password-hashing.html for more information. If you're on Windows, use the Instant Rails installer to get the updated mysql bindings.", exception.original_exception)
- else
- raise
- end
end
# MysqlAdapter has to free a result after using it, so we use this method to write