diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-07 21:00:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-07 21:00:36 +0000 |
commit | a161110a6ba10a43df67179263d62f201631e88d (patch) | |
tree | c6b146ed125d82487d6285c259cfb30346c310bc /includes/database.mysql.inc | |
parent | 9a62873a4beae8fe620dedcf7ca40954e12cc7cb (diff) | |
download | brdo-a161110a6ba10a43df67179263d62f201631e88d.tar.gz brdo-a161110a6ba10a43df67179263d62f201631e88d.tar.bz2 |
- Applied Michael Caerwyn's "%s -> %d" patch.
- Changed all occurences of '%d' to %d as suggested on the mailing list.
Diffstat (limited to 'includes/database.mysql.inc')
-rw-r--r-- | includes/database.mysql.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc index 3bae578fb..c3ac12876 100644 --- a/includes/database.mysql.inc +++ b/includes/database.mysql.inc @@ -113,7 +113,7 @@ function db_next_id($name) { db_query("LOCK TABLES sequences WRITE"); $id = db_result(db_query("SELECT id FROM sequences WHERE name = '%s'", $name)) + 1; - db_query("REPLACE INTO sequences VALUES ('%s', '%d')", $name, $id); + db_query("REPLACE INTO sequences VALUES ('%s', %d)", $name, $id); db_query("UNLOCK TABLES"); return $id; |