Thanks! This is a life-saver :) (the tip on invalid dates)

On Dec 1, 12:53 am, Jeremy Evans <[email protected]> wrote:
> On Nov 30, 6:19 am, sausheong <[email protected]> wrote:
>
> > Hi there,
>
> > I realise that there is a convert_tinyint_to_bool setting in the
> > native MySQL adapter but because of this problem (http://
> > stackoverflow.com/questions/1671401/unable-to-output-mysql-tables-
> > which-involve-dates-in-sequel) I'm unable to use the native adapter.
> > However I *am* able to use do_mysql but unfortunately do_mysql still
> > converts my tinyint column to boolean.
>
> > Can someone here help? It's been pretty frustrating.
>
> It's a do_mysql issue, you'll have to talk to the DataObjects
> developers to get them to add a configuration option that turns off
> the behavior.
>
> Also, you may be able to use invalid dates with the native MySQL
> adapter if you do:
>
>   Sequel::MySQL.convert_invalid_date_time = nil
>   # or
>   Sequel::MySQL.convert_invalid_date_time = :string
>
> Seehttp://sequel.rubyforge.org/rdoc-adapters/classes/Sequel/MySQL.html
>
> Jeremy

--

You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.


Reply via email to