<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+=== HEAD
+
+* Don't swallow DatabaseConnectionErrors when creating model subclasses (tommy.midttveit)
+
 === 3.2.0 (2009-07-02)
 
 * In the STI plugin, don't overwrite the STI field if it is already set (jeremyevans)</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -290,9 +290,9 @@ module Sequel
         @dataset.model = self if @dataset.respond_to?(:model=)
         begin
           @db_schema = (inherited ? superclass.db_schema : get_db_schema)
-        rescue Sequel::DatabaseConnectionError =&gt; e
-          raise e
-        rescue =&gt; e
+        rescue Sequel::DatabaseConnectionError
+          raise
+        rescue
           nil
         end
         self
@@ -396,15 +396,15 @@ module Sequel
         ds_opts = dataset.opts
         single_table = ds_opts[:from] &amp;&amp; (ds_opts[:from].length == 1) \
           &amp;&amp; !ds_opts.include?(:join) &amp;&amp; !ds_opts.include?(:sql)
-        get_columns = proc{
+        get_columns = proc do
           begin
             columns
-          rescue Sequel::DatabaseConnectionError =&gt; e
-            raise e
-          rescue =&gt; e
+          rescue Sequel::DatabaseConnectionError
+            raise
+          rescue
             []
           end
-        }
+        end
         if single_table &amp;&amp; (schema_array = (db.schema(table_name, :reload=&gt;reload) rescue nil))
           schema_array.each{|k,v| schema_hash[k] = v}
           if ds_opts.include?(:select)</diff>
      <filename>lib/sequel/model/base.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>036fc48d1f578016231b18e50eeb671afbbe4233</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </author>
  <url>http://github.com/jeremyevans/sequel/commit/b5f36ce5f5b486218f32aca6e733ee383b5b5dfe</url>
  <id>b5f36ce5f5b486218f32aca6e733ee383b5b5dfe</id>
  <committed-date>2009-07-02T09:41:12-07:00</committed-date>
  <authored-date>2009-07-02T09:41:12-07:00</authored-date>
  <message>Update CHANGELOG and minor changes for previous patch</message>
  <tree>bf1e07222979dc9608c88a644334186dbdeb57da</tree>
  <committer>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </committer>
</commit>
