--- coder_6x.inc 2007-11-06 12:21:32.000000000 +0000
+++ coder_6x.inc 2007-11-06 14:35:24.000000000 +0000
@@ -217,6 +217,12 @@
       '#source' => 'all',
       '#warning_callback' => '_coder_6x_menu_node_add_warning',
     ),
+    array(
+      '#type' => 'regex',
+      '#value' => '[\s\(]db_next_id\s*\(',
+      '#source' => 'all',
+      '#warning_callback' => '_coder_6x_db_next_id_warning',
+    ),
   );
   $review = array(
     '#title' => t('Converting 5.x modules to 6.x'),
@@ -562,3 +568,15 @@
     '#link' => 'http://drupal.org/node/114774#node_add_summary',
   );
 }
+
+function _coder_6x_db_next_id_warning() {
+  return array(
+    '#warning' => t('!db_next_id is deprecated.  Use !db_last_insert_id instead.',
+      array(
+        '!db_next_id' => theme('drupalapi', 'db_next_id', '5'),
+        '!db_last_insert_id' => theme('drupalapi', 'db_last_insert_id', '6'),
+      )
+    ),
+    '#link' => 'http://drupal.org/node/114774#db_last_insert_id',
+  );
+}
