Skip to content

Commit 7acfb75

Browse files
committed
Fix NameError: uninitialized constant ActiveRecord::ConnectionAdapters::Mysql2::DatabaseStatements::ER_UNKNOWN_STMT_HANDLER
https://buildkite.com/rails/rails/builds/115365#01943d81-dfd3-49c1-8a01-68ba87e6fe3f/1226-1237 Follow up to 6d5633f.
1 parent 5d3bf2a commit 7acfb75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/mysql2/database_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def perform_query(raw_connection, sql, binds, type_casted_binds, prepare:, notif
7070
# but the client doesn't know it.
7171
# But we know that this error is safe to retry, so we do so after
7272
# getting rid of the originally cached statement.
73-
if error.error_number == ER_UNKNOWN_STMT_HANDLER
73+
if error.error_number == Mysql2Adapter::ER_UNKNOWN_STMT_HANDLER
7474
if retry_count.positive?
7575
retry_count -= 1
7676
retry

0 commit comments

Comments
 (0)