diff options
Diffstat (limited to 'includes/database.pgsql.inc')
-rw-r--r-- | includes/database.pgsql.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc index fad269e05..71723d84d 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))); |