[Nitro] [TC] EZ an arrays again...

Bryan Soto bryan.a.soto at gmail.com
Thu Apr 27 01:50:48 EDT 2006


On 4/20/06, Michael Fellinger <manveru at weez.co.jp> wrote:
> Sorry, the testcase was not really helping... i wanted to reproduce a bug but
> that only shows up with schema_inheritance and EZ.
> so if you have something like:
>
> class Person
>   property :name, String
>   property :kids, Integer
>   schema_inheritance
> end
>
> class Musician < Person
>   property :instruments, Array
> end
>
> class Plumber < Person
>   property :tools, Array
> end
>
> Musician.find{|m| m.kids === [3,4,5]}
>

Just to be sure, this is the error your patch is supposed to fix, right?

I, [2006-04-26T22:26:02.070000 #4452]  INFO -- : Og uses the Sqlite store.
I, [2006-04-26T22:26:05.836000 #4452]  INFO -- : Created table 'ogperson'.
k:/devlab/nitrohq/og/lib/og/store/sql.rb:1182:in `+': can't convert String into
Array (TypeError)
        from k:/devlab/nitrohq/og/lib/og/store/sql.rb:1182:in `update_condition'
        from k:/devlab/nitrohq/og/lib/og/store/sql.rb:1027:in `resolve_options'
        from k:/devlab/nitrohq/og/lib/og/store/sql.rb:465:in `find'
        from k:/devlab/nitrohq/og/lib/og/entity.rb:191:in `find'
        from manveru-ez-test.rb:23


--
"Never tell people how to do things. Tell them what to do and they
will surprise you with their ingenuity." —General George S. Patton




More information about the Nitro-general mailing list