[development] db_last_insert_id

Mlen-Too Wesley mlen.too.wesley at gmail.com
Thu Nov 5 00:15:53 UTC 2009


It works differently in PostgreSQL, see database.pgsql.inc, or here:
http://api.drupal.org/api/function/db_last_insert_id

On Wed, Nov 4, 2009 at 7:07 PM, Jeff Greenberg <jeff at ayendesigns.com> wrote:

> I'm confused with the db_last_insert_id function in
> database.mysql-common.inc.
>
>
> The function is:
>
>
> function db_last_insert_id($table, $field) {
>  return db_result(db_query('SELECT LAST_INSERT_ID()'));
> }
>
>
> and I see no reason whatsoever for there to be any parameters, let alone
> required ones.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20091104/bcd8a03d/attachment.html 


More information about the development mailing list