DBI error please help

P

Peter Woodsky

I cannot do a select on a decimal field all others work fine. Any help
in solving this is greatly appreciated.

Ruby throws this error.

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: error in ruby

[Wed Jan 30 13:46:34 2008] [error] mod_ruby:
/usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:649:in `column_info': undefined
method `[]' for nil:NilClass (NoMethodError)

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:648:in `each'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:648:in `column_info'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:573:in `execute'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/DBD/Mysql/Mysql.rb:570:in `execute'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/dbi.rb:893:in `execute'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/dbi.rb:480:in `execute'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/var/www/peter/planet/page/history:38

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from (eval):117

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `eval_string_wrap'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `run'

[Wed Jan 30 13:46:34 2008] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:72:in `handler'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top