From 4079abab3b7928ff245dda0004424702151df633 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 11 Mar 2003 22:49:16 +0000 Subject: - Ported Neil Ernst's patch to CVS: prefix a columname with a qualification to make things work using PostgreSQL. NOTE: Neil's "&&"-patch will be part of Moshe's MSSQL patch. --- modules/statistics.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/statistics.module') diff --git a/modules/statistics.module b/modules/statistics.module index 340614e01..afa850d79 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -46,7 +46,7 @@ function statistics_exit() { // if we affected 0 rows, this is the first time viewing the node if (!db_affected_rows()) { // must create a new row to store counter's for new node - db_query("INSERT INTO statistics (nid, daycount, totalcount) VALUES('%s', daycount + 1, totalcount + 1)", arg(2)); + db_query("INSERT INTO statistics (nid, daycount, totalcount) VALUES('%s', statistics.daycount + 1, statistics.totalcount + 1)", arg(2)); } } } -- cgit v1.2.3