diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc
index bdb3abb1df4a947874811dd19e5363ae539a6d98..aa87b5bffde3c051cbd2d7766acdc90d54b51a90 100644
--- a/includes/database.mysql.inc
+++ b/includes/database.mysql.inc
@@ -249,6 +249,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 curly brackets to preserve compatibility
+ * with table prefixes. For example, db_next_id('{node}_nid');
  */
 function db_next_id($name) {
   $name = db_prefix_tables($name);
diff --git a/includes/database.mysqli.inc b/includes/database.mysqli.inc
index 5a1dea60fa1efa2459f7e80001747dba17da9ab7..e22e3ada464035e67e8a5d422ae0259e6d213791 100644
--- a/includes/database.mysqli.inc
+++ b/includes/database.mysqli.inc
@@ -234,6 +234,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 curly brackets to preserve compatibility
+ * with table prefixes. For example, db_next_id('{node}_nid');
  */
 function db_next_id($name) {
   $name = db_prefix_tables($name);
diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc
index fad269e05c806fba9ddeb7041ab1979506d22a66..71723d84db00958427a3e865664c5308d7433e81 100644
--- a/includes/database.pgsql.inc
+++ b/includes/database.pgsql.inc
@@ -228,6 +228,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 curly 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)));