From: Michael Neumann Date: 2002-05-27T18:54:36+09:00 Subject: Re: DBI access to mysql auto_increment record numbers? On Mon, May 27, 2002 at 10:46:25AM +0900, Brad Cox, Ph.D. wrote: > Sean, sorry if I'm being obtuse, but this isn't working out. > > My dbh > Mysql::Database:0x402bd2e0 @mutex=# @waiting=[]>, @attr={}, @handle=#>> > > The problem: > Exception `NameError' at /usr/local/ile/lib/Person.rb:75 - undefined method > `insert_id' for # > undefined method `insert_id' for # > > I've gone thru the sources and don't find insert_id anywhere in > ruby-dbi-all-0.0.15.tar.gz > > Am I using the right software? Suggestions? As insert_id is a driver-specific funtion, you have to call it via method func and not directly: dbh.func(:insert_id) Regards, Michael -- Michael Neumann *** eMail uu9r@rz.uni-karlsruhe.de