datamapper/do — pull request #36 by flavio (2012-08-02 08:59:14+00:00)
Title: Fix segmentation fault inside of do_oracle

A segmentation fault took place inside of the do_oracle adapter while converting a `Time` object into a `DateTime` one. A long int value was given to the `DateTime` constructor rather then the proper ruby data structure. This caused the underlying ruby code to access a wrong portion of memory. The ruby vm
crashed inside of the `offset_to_sec` function (`ext/date/date_core.c:2304`).

This fix has been tested with ruby 1.9.3p194.