|
From: Sean C. <se...@ch...> - 2002-02-16 14:35:02
|
Using the following query, anyone have any idea as to why I'd get the
following error from below? I'm not sure why I'm getting this error,
but here's the kicker: if I push refresh on the page, it works. I'm
running about 5-10% failure for the following query and it's a tad
scary that it's so inconsistent. Anyone have any ideas? The query
doesn't even generate any dates:
sql = 'SELECT [VARCHAR(20)], ([INT4] / 1024.0 / 1024.0) FROM....'
dbh.select_all(sql, username) do |row| # This is line 75 in index.rhtml
/usr/local/lib/ruby/site_ruby/1.6/dbi/utils.rb:12:in `conv_param': uninitialized constant Object::Date (NameError)
from /usr/local/lib/ruby/site_ruby/1.6/dbi/utils.rb:10:in `collect'
from /usr/local/lib/ruby/site_ruby/1.6/dbi/utils.rb:10:in `conv_param'
from /usr/local/lib/ruby/site_ruby/1.6/dbi/dbi.rb:554:in `execute'
from /usr/local/lib/ruby/site_ruby/1.6/dbi/dbi.rb:585:in `select_all'
from /tmp/index.rhtml.97187.0:75
from /usr/local/lib/ruby/site_ruby/1.6/apache/eruby-run.rb:104:in `load'
from /usr/local/lib/ruby/site_ruby/1.6/apache/eruby-run.rb:104:in `run'
from /usr/local/lib/ruby/site_ruby/1.6/apache/eruby-run.rb:72:in `handler'
from ruby:0
Anyone have any thoughts? -sc
--
Sean Chittenden
|