From b6480251b89f75d4038f45a0c6f0e33833ec2307 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Mon, 26 Apr 2010 14:12:59 +0000
Subject: [PATCH] - Patch #780048 by linclark: db_next_id() documentation
 refers to a non-existent function.

---
 includes/database/database.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/includes/database/database.inc b/includes/database/database.inc
index dda27d7ba750..843117f69613 100644
--- a/includes/database/database.inc
+++ b/includes/database/database.inc
@@ -2500,8 +2500,9 @@ function db_close(array $options = array()) {
 /**
  * Retrieves a unique id.
  *
- * Use this function if for some reason you can't use a serial field, normally a
- * serial field with db_last_insert_id is preferred.
+ * Use this function if for some reason you can't use a serial field. Using a
+ * serial field is preferred, and InsertQuery::execute() returns the value of
+ * the last ID inserted.
  *
  * @param $existing_id
  *   After a database import, it might be that the sequences table is behind, so
-- 
GitLab