Re: Re: cvs: php4 /pear DB.php /pear/DB common.phpmysql.php

From: Date: Tue, 05 Dec 2000 10:29:25 +0000
Subject: Re: Re: cvs: php4 /pear DB.php /pear/DB common.phpmysql.php
References: 1 2 3  Groups: php.pear 
Request: Send a blank email to php-pear+get-541@lists.php.net to get a copy of this message
Hi, > Could there be also lastInsertId() method in DB_mysql? > Why not? because some databases do not support this ? i would be better to learn from the mistakes made in phplib db abstraction and not try to implement all mysql features. but in this special case for lastid i think its not nessesray to implement this, because normally you select the next id in a transaction and so you don't need lastinsertid. this is possible to do on mysql, but in the other way its sometimes difficult to implement this in other databases. tf -- -------------------------------------------------------------------------- http://phporacleadmin.org http://tfromm.com mailto:tf@inubit.com "go away or I will replace You with a small PHP script!"

« previous php.pear (#541) next »