Skip to content

Commit

Permalink
More clear comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Feb 3, 2017
1 parent bc5b91e commit 446429d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/odbc_adapter/adapters/mysql_odbc_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ODBCAdapter
module Adapters
# Overrides specific to MySQL. Mostly taken from
# ActiveRecord::ConnectionAdapters::MySQLAdapter
# ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter
class MySQLODBCAdapter < ActiveRecord::ConnectionAdapters::ODBCAdapter
PRIMARY_KEY = 'INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY'.freeze

Expand Down Expand Up @@ -31,7 +31,6 @@ def limited_update_conditions(where_sql, _quoted_table_name, _quoted_primary_key
where_sql
end

# Taken from ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter
def join_to_update(update, select) #:nodoc:
if select.limit || select.offset || select.orders.any?
subsubselect = select.clone
Expand Down

0 comments on commit 446429d

Please sign in to comment.