On Wednesday, October 8, 2014 11:56:08 AM UTC-7, Wesley Staples wrote:
>
> I'm trying to copy some records from a MySQL database to a sqlite 
> database. The column is a timestamps set to "not null". 
> My issue is when I have a datetime column with a value of "0000-00-00 
> 00:00:00" sequel returns nil. Is there anyway to get sequel to return 
> "0000-00-00 
> 00:00:00"? I have tried the DB.convert_invalid_date_time = nil but that 
> does not seem to work on the mysql2 adapter.
>

 The mysql2 driver doesn't support this as far as I know.  You can use the 
mysql adapter with DB.convert_invalid_date_time = :string if you want that 
behavior.

Thanks,
Jeremy

-- 
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/d/optout.

Reply via email to