From: Michael Neumann Date: 2002-05-27T20:13:18+09:00 Subject: Re: DBI access to mysql auto_increment record numbers? On Mon, May 27, 2002 at 01:27:09PM +0900, Sean Chittenden wrote: > > Sean, sorry if I'm being obtuse, but this isn't working out. > > Yeah, I was wrong about that. > > > Am I using the right software? Suggestions? > > with ruby-mysql 0.3.3 and dbi .15, you should be able to do: > > dbh.func('insert_id') > > Michael Neumann posted the way for how you do that recently... I can't > remember the specifics. I believe it was on ruby-talk though. I > think the 1st one works, but I'm not sure. > > dbh.func(:insert_id) > dbh.insert_id > dbh['insert_id'] Yes, only the first works. -- Michael Neumann *** eMail uu9r@rz.uni-karlsruhe.de