That worked perfectly, thank you Jeremy!

On Tuesday, August 5, 2014 2:13:28 PM UTC-5, Jeremy Evans wrote:
>
> On Tuesday, August 5, 2014 12:09:11 PM UTC-7, Cal Heldenbrand wrote:
>>
>> Hi everyone,
>>
>> I need to disable the automatic coercion of boolean types in DB2.  I see 
>> that there is a convert_smallint_to_bool instance variable in the 
>> Sequel::DB2 module, but I can't seem to set it in my rails app.  I want to 
>> turn this off globally in one spot.  I'm trying this in an initializer 
>> after my Sequel connections are initiated:
>>
>> Sequel::DB2.convert_smallint_to_bool = false
>>
>> But, I get this error in my Rails startup:  undefined method 
>> `convert_smallint_to_bool=' for Sequel::DB2:Module (NoMethodError)
>>
>
> That is part of the db2 adapter, using the old db2/db2cli library.  If you 
> are using the ibmdb adapter:
>
>   Sequel::IBMDB.convert_smallint_to_bool = false
>
> 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