Re: Re: cvs: php4 /pear DB.php /pear/DB common.php mysql.php
| From: | Stig S. Bakken | Date: | Tue, 05 Dec 2000 07:28:31 +0000 |
| Subject: | Re: Re: cvs: php4 /pear DB.php /pear/DB common.php mysql.php | ||
| References: | 1 2 3 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-538@lists.php.net to get a copy of this message | ||
Mikhail Zabaluev wrote:
>
> Hello Sebastian,
>
> On Mon, Dec 04, 2000 at 18:22 +0100, Sebastian Bergmann wrote:
> >
> > Sebastian Bergmann wrote:
> > > sbergmann Mon Dec 4 09:13:31 2000 EDT
> > >
> > > Modified files:
> > > /php4/pear DB.php
> > > /php4/pear/DB common.php mysql.php
> > > Log:
> > > Added nextid() method to DB_common. Added lock() and unlock()
> > > methods to DB_mysql.
>
> Could there be also lastInsertId() method in DB_mysql?
No. This feature is completely MySQL specific, if you think you really
need it, you might as well write MySQL specific code:
"mysql_insert_id($dbh->connection)". The new nextid feature should be
all you need though, unless you have some serious performance issues.
- Stig