summaryrefslogtreecommitdiff
path: root/modules/statistics.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-11 22:49:16 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-11 22:49:16 +0000
commit4079abab3b7928ff245dda0004424702151df633 (patch)
tree6d8ffac64ade0625f0a974f6729b4fe4c4867ca0 /modules/statistics.module
parent07bb678662e1686b1f966194324c5caa1b14c963 (diff)
downloadbrdo-4079abab3b7928ff245dda0004424702151df633.tar.gz
brdo-4079abab3b7928ff245dda0004424702151df633.tar.bz2
- 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.
Diffstat (limited to 'modules/statistics.module')
-rw-r--r--modules/statistics.module2
1 files changed, 1 insertions, 1 deletions
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));
}
}
}