In "How to write database independent code" http://drupal.org/node/1395 it should be noted that a programmer has to be aware of that

  1. db_next_id is not thread safe,
  2. deprecated as of D6, use db_last_insert_id.

Comments

richard_kapolnai’s picture

Priority: Normal » Minor

Oops, I am sorry, I learned that db_next_id was thread safe so only point 2 is active.

cameron tod’s picture

Assigned: Unassigned » cameron tod
Status: Active » Fixed

Fixed issue 2 as requested.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.