diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-03-11 22:49:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-03-11 22:49:16 +0000 |
commit | 4079abab3b7928ff245dda0004424702151df633 (patch) | |
tree | 6d8ffac64ade0625f0a974f6729b4fe4c4867ca0 /modules/statistics/statistics.module | |
parent | 07bb678662e1686b1f966194324c5caa1b14c963 (diff) | |
download | brdo-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/statistics.module')
-rw-r--r-- | modules/statistics/statistics.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 340614e01..afa850d79 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/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)); } } } |