On Oct 11, 2013, at 11:30 AM, Jeremy Evans <[email protected]> wrote:

> 
> With a small change to the adapter so it doesn't depend on hash order, I'm 
> was getting the same results on 1.8.7 as on 2.0.0:
>  
> Failures:
> 
>   1) Database schema parser should parse current date defaults from the 
> schema properly
>      Failure/Error: Unable to find matching line from backtrace
>        expected: #<Sequel::SQL::Constant @constant=>:CURRENT_DATE>
>             got: nil (using ==)
>      # ./spec/integration/schema_test.rb:114
> 
> Finished in 1 minute 2.12 seconds
> 542 examples, 1 failure, 3 pending
> 
> This failure was due to a bug in the shared adapter, where it was trying to 
> set the :default value in the schema hash to an object, instead of letting 
> column_schema_to_ruby_default handle it.  There was also a small patch needed 
> to the shared Database code to get it to recognize today() as a current date.
> 
> With these changes, I got a clean spec run on 1.8.7, 1.9.3, and 2.0.0.

Awesome. Curious of the changes though to learn what I did wrong.


-GregD

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to