From: Sean C. <se...@ch...> - 2002-02-19 00:39:07
|
> > > 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. > > > > ::Date is he same as Object::Date ? > > Yes, it's the same. In this case, :: could be ommitted, as there is > no DBI::Date class. Hmm... this is most odd. Ah ha! Looks like a combination of a few things were getting in the way and causing this problem. 1) Object::Date is set someplace inside of dbi 2) auto-reload was being used 3) auto-reload performs a basic mapping between the class name and the file system which was causing problems between /usr/local/lib/ruby/1.6/date.rb and dbi's definition of date. > > > This error occures if there is no "Date" object. I'm sure it is > > > a problem related to mod_ruby. Yeah, auto-reload doesn't mesh so well with DBI: auto-reload was finding the wrong date module (date.rb, not DBI's class Date). The work around is to turn off auto-reload. -sc -- Sean Chittenden |