[Nitro] Camel Case does not work for join tables

vseguip at gmail.com vseguip at gmail.com
Mon Jan 30 05:31:27 EST 2006


I attach a simple test case that demonstrates a bug when using camel
case as class names in joins_many relationships.


here is the output I get



/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/errors.rb:94:in
`check': table ogtc_join_articletocategory has no column named
articlecamelcase_oid (SQLite3::SQLException)
        from /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/statement.rb:70:in
`initialize'
        from /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:183:in
`prepare'
        from /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:274:in
`query'
        from /home/vseguip/Proyectos/og-clean/repo.nitrohq.com/og/lib/og/store/sqlite.rb:91:in
`exec'
        from /home/vseguip/Proyectos/og-clean/repo.nitrohq.com/og/lib/og/store/sql.rb:487:in
`join'
        from (eval):26:in `add_category'
        from /home/vseguip/Proyectos/og-clean/repo.nitrohq.com/og/lib/og/collection.rb:123:in
`push'
        from test_join_psql.rb:55:in `test_all'
         ... 11 levels...
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:200:in `run'
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
        from /usr/lib/ruby/1.8/test/unit.rb:285
        from /usr/lib/ruby/1.8/test/unit.rb:283
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_join_psql.rb
Type: application/x-ruby
Size: 1363 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060130/f585a7b5/attachment.bin 


More information about the Nitro-general mailing list