[Nitro] REPO updated.

Bryan Soto bryan.a.soto at gmail.com
Wed Apr 5 17:09:37 EDT 2006


I'm going to send this to the list as a patch to see if I can get some
feedback. Although, if you've tried it out and can supply some, it'd
be greatly appreciated as it'd save me some time.

Thanks.

On 4/3/06, Bryan Soto <bryan.a.soto at gmail.com> wrote:
> With the sqlite test fix, the Og test suite completes with Mysql and
> Sqlite. Postgres dies with this error:
>
> E, [2006-04-03T16:33:43.617072 #10799] ERROR -- : DB error ERROR:
> relation "ogj_tcogstore_category_tcogstore_newarticle" does not exist
> , [INSERT INTO ogj_tcogstore_category_tcogstore_newarticle
> (category_oid,newarticle_oid) VALUES (1, 1)]
>
> The problem seems to be that it is creating join tables in a different
> manner than the other stores. Where Mysql is using:
>
> if join_tables = klass.ann.self[:join_tables]
>
> Postgres does:
>
> join_tables = klass.relations.reject{|rel| !rel.join_table}.map{|rel|
> join_table_info(rel)}
>
> Changing that line makes the test suite fail later on in taggable. I
> don't know Postgres well enough to want to make the change though
> especially as I don't know where the code originated from, though I'm
> guessing probably Rob. I can only go by what the tests tell me. So,
> can anyone comment on this one?
>
> Thanks.

--
"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