lib/rom/sql/relation.rb in rom-sql-1.0.0.rc1 vs lib/rom/sql/relation.rb in rom-sql-1.0.0.rc2
- old
+ new
@@ -38,9 +38,10 @@
schema_inferrer -> (name, gateway) do
inferrer_for_db = ROM::SQL::Schema::Inferrer.get(gateway.connection.database_type.to_sym)
begin
inferrer_for_db.new.call(name, gateway)
rescue Sequel::Error => e
+ inferrer_for_db.on_error(klass, e)
ROM::Schema::DEFAULT_INFERRER.()
end
end
dataset do