|
From: <520...@t-...> - 2002-02-16 17:35:20
|
Sean Chittenden wrote: > 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: Method conv_params has a "case" statement that checks whether the passed parameter is a Date, Time or other object, and converts Date and Time objects to DBI::Date and DBI::Timestamp objects. > 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' This error occures if there is no "Date" object. I'm sure it is a problem related to mod_ruby. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de |