From: Michael N. <uu...@rz...> - 2003-01-22 11:22:34
|
Paul DuBois wrote: > >Which version of AspectR are you using? Try the newest (0.3.5). > > > > > >Regards, > > > > Michael > > Hm. I am using AspectR 0.3.5. > > My versions are: > > Ruby MySQL module 2.4.3c > Ruby DBI 0.0.18 > AspectR 0.3.5 > > I modified the script to be a little simpler (and to connect successfully). > > > require "dbi" > require "dbi/trace" > > DBI.trace(0) > dbh = DBI.connect('dbi:Mysql:database=test', 'paul','somepass') > dbh.disconnect > > I'd expect no output at all from the script , but this is what I get: > > % ruby trace_test.rb > -> connect for #<DBI::DriverHandle:0x1842b0> ("database=test", > "paul", "somepass", > nil) > <- connect for #<DBI::DriverHandle:0x1842b0> = > #<DBI::DatabaseHandle:0x173dfc> > -> disconnect for #<DBI::DatabaseHandle:0x173dfc> () > <- disconnect for #<DBI::DatabaseHandle:0x173dfc> = nil > > If I modify it so that the trace level is 1, 2, or 3, the trace output > is identical. Seems odd. > > I get the same results on Mac OS X and on RedHat 7.0 (other than that the > object addresses are different, of course). > > Anything I can do to figure out what's going on here? Very strange! And which version of Ruby do you use? I've only tested it with 1.6.x versions. 1.7 and 1.8 versions may have problems. Regards, Michael |