summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-20 05:40:16 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-20 05:40:16 +0000
commit6e14528192f435ad8d78fc076b5732ae5e9acf98 (patch)
tree10ae37564b17ad724d8fd68714ed0918e31f8cb0
parent870cc816079328cea1295ae3e6242be1a2cb2fa2 (diff)
downloadbrdo-6e14528192f435ad8d78fc076b5732ae5e9acf98.tar.gz
brdo-6e14528192f435ad8d78fc076b5732ae5e9acf98.tar.bz2
- Patch #10196 by drumm: fixed off by one error.
-rw-r--r--database/updates.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 47344f261..f7922c4ae 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -1003,7 +1003,7 @@ function update_85() {
$ret[] = update_sql("UPDATE {sequences} SET name = '{aggregator_feed}_fid' WHERE name = '{feed}_fid'");
$ret[] = update_sql("ALTER TABLE {item} RENAME TO {aggregator_item}");
$ret[] = update_sql("ALTER TABLE {aggregator_item} DROP attributes");
- $max = db_result(db_query_range("SELECT iid FROM {aggregator_item} ORDER BY iid DESC", 1, 1));
+ $max = db_result(db_query_range("SELECT iid FROM {aggregator_item} ORDER BY iid DESC", 0, 1));
if ($max) {
$ret[] = update_sql("INSERT INTO {sequences} (name, id) VALUES ('{aggregator_item}_iid', $max)");
}