It works differently in PostgreSQL, see database.pgsql.inc, or here:<br><a href="http://api.drupal.org/api/function/db_last_insert_id">http://api.drupal.org/api/function/db_last_insert_id</a><br><br><div class="gmail_quote">
On Wed, Nov 4, 2009 at 7:07 PM, Jeff Greenberg <span dir="ltr"><<a href="mailto:jeff@ayendesigns.com">jeff@ayendesigns.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm confused with the db_last_insert_id function in database.mysql-common.inc.<br>
<br>
<br>
The function is:<br>
<br>
<br>
function db_last_insert_id($table, $field) {<br>
return db_result(db_query('SELECT LAST_INSERT_ID()'));<br>
}<br>
<br>
<br>
and I see no reason whatsoever for there to be any parameters, let alone required ones.<br>
<br>
</blockquote></div><br>