Index: includes/database.mysql.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database.mysql.inc,v
retrieving revision 1.59
diff -u -p -r1.59 database.mysql.inc
--- includes/database.mysql.inc	16 Sep 2006 19:26:22 -0000	1.59
+++ includes/database.mysql.inc	26 Sep 2006 00:31:36 -0000
@@ -237,6 +237,9 @@ function db_error() {
  * database tables. Instead, this function is used to return a new unique ID
  * of the type requested. If necessary, a new sequence with the given name
  * will be created.
+ *
+ * Note that the table name should be in brackets to preserve compatibility
+ * with table prefixes. For example, db_next_id("{node}_nid");
  */
 function db_next_id($name) {
   $name = db_prefix_tables($name);
Index: includes/database.pgsql.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database.pgsql.inc,v
retrieving revision 1.36
diff -u -p -r1.36 database.pgsql.inc
--- includes/database.pgsql.inc	4 Sep 2006 14:50:24 -0000	1.36
+++ includes/database.pgsql.inc	26 Sep 2006 00:31:36 -0000
@@ -221,6 +221,9 @@ function db_error() {
  * database tables. Instead, this function is used to return a new unique ID
  * of the type requested. If necessary, a new sequence with the given name
  * will be created.
+ *
+ * Note that the table name should be in brackets to preserve compatibility
+ * with table prefixes. For example, db_next_id("{node}_nid");
  */
 function db_next_id($name) {
   $id = db_result(db_query("SELECT nextval('%s_seq')", db_prefix_tables($name)));
