lib/sequel/adapters/shared/mysql.rb in sequel-4.48.0 vs lib/sequel/adapters/shared/mysql.rb in sequel-4.49.0

- old
+ new

@@ -839,10 +839,13 @@ end # Transforms an CROSS JOIN to an INNER JOIN if the expr is not nil. # Raises an error on use of :full_outer type, since MySQL doesn't support it. def join_table(type, table, expr=nil, opts=OPTS, &block) - type = :inner if (type == :cross) && !expr.nil? + if (type == :cross) && !expr.nil? + Sequel::Deprecation.deprecate(":cross join type with conditions being converted to INNER JOIN on MySQL", "Use :inner join type instead") + type = :inner + end raise(Sequel::Error, "MySQL doesn't support FULL OUTER JOIN or NATURAL FULL JOIN") if type == :full_outer || type == :natural_full super(type, table, expr, opts, &block) end # Transforms :natural_inner to NATURAL LEFT JOIN and straight to