lib/sequel/adapters/shared/mysql.rb in sequel-5.31.0 vs lib/sequel/adapters/shared/mysql.rb in sequel-5.32.0

- old
+ new

@@ -715,19 +715,10 @@ def full_text_sql(cols, terms, opts = OPTS) terms = terms.join(' ') if terms.is_a?(Array) SQL::PlaceholderLiteralString.new((opts[:boolean] ? MATCH_AGAINST_BOOLEAN : MATCH_AGAINST), [Array(cols), terms]) end - # Transforms :straight to STRAIGHT_JOIN. - def join_type_sql(join_type) - if join_type == :straight - 'STRAIGHT_JOIN' - else - super - end - end - # Sets up the insert methods to use INSERT IGNORE. # Useful if you have a unique key and want to just skip # inserting rows that violate the unique key restriction. # # dataset.insert_ignore.multi_insert( @@ -954,9 +945,18 @@ else super end end + # Transforms :straight to STRAIGHT_JOIN. + def join_type_sql(join_type) + if join_type == :straight + 'STRAIGHT_JOIN' + else + super + end + end + # MySQL allows a LIMIT in DELETE and UPDATE statements. def limit_sql(sql) if l = @opts[:limit] sql << " LIMIT " literal_append(sql, l)