Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to reproduce:
Open firebug and execute the following 3-4 times or so:
db_query("INSERT INTO {boxes} (body, info, format) VALUES ('%s', '%s', %d)", "Some body here...", "A title is here", 1);
$delta = db_last_insert_id('boxes', 'bid');
echo $delta;
After the first time you should get the correct id on a clean install, that is 1. But on subsequent executions the value will be 4-digits number.
More details and possible solution at: http://drupal.org/node/821432
Many thanks!
Comments