From: Sean C. <se...@ch...> - 2002-05-13 04:20:15
|
> > > Could the maintainer of ruby-dbd-mysql look into this please? > > > Basically, every time a @res_handle is grabbed from Mysql#query > > > there is a false assumption that it is a MysqlRes object, and not a > > > reference to the original Mysql object. > > > > I think it might be a fair assumption, but I'm neither the dbd_mysql > > maintainer, nor am I familair with what that option does. > > Unfortunately, neither do I. I just stumbled on the problem and thought > I'd report the invalid assumption that dbd-mysql is making about > Mysql#query. Perhaps the code could be fixed by adding an addition > check. Right now the could looks like: > > @res_handle.free if @res_handle > > Perhaps that needs to be changed to: > > @res_handle.free if (@res_handle and @res_handle.is_a? MysqlRes) > > I don't know... I'm a PostgreSQL guy myself. Could you test the above change and see if it works for you? You seem to have done the diagnosis correctly and I think it should work. -sc -- Sean Chittenden |