Modify ↓
Opened 17 years ago
Closed 7 years ago
#3207 closed defect (worksforme)
Bug in SQL of Postgres BackendDB
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | highest | Component: | StractisticsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description (last modified by )
Occurs when i call the plugin (i don't see any page yet):
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "build/bdist.linux-i686/egg/stractistics/web_ui.py", line 116, in process_request db) File "build/bdist.linux-i686/egg/stractistics/global_reports.py", line 31, in global_reports weeks_back, db) File "build/bdist.linux-i686/egg/stractistics/global_reports.py", line 66, in _repository_activity revisions = _retrieve_revisions(authors, start_date, end_date, db) File "build/bdist.linux-i686/egg/stractistics/global_reports.py", line 140, in _retrieve_revisions revisions = execute_sql_expression(db, sql_expr, map_rows) File "build/bdist.linux-i686/egg/stractistics/util.py", line 117, in execute_sql_expression cursor.execute(sql_expr) File "/usr/local/lib/python2.5/site-packages/trac/db/util.py", line 51, in execute return self.cursor.execute(sql) File "/usr/local/lib/python2.5/site-packages/trac/db/util.py", line 51, in execute return self.cursor.execute(sql) File "/usr/local/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 3111, in execute raise OperationalError, msg OperationalError: ERROR: syntax error at or near ")" LINE 4: ...e > 1206528374 AND r.time < 1213785974 AND r.author IN ( )
Attachments (0)
Change History (6)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
This error occurs because ignored_repository_authors and ignored_wiki_authors list are empty. You can fix this error putting the next entries in trac.ini:
[stractistics] ignored_repository_authors = dummy ignored_wiki_authors = dummy
comment:3 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 14 years ago by
Owner: | changed from dagomez to Ryan J Ollos |
---|
comment:5 Changed 11 years ago by
Status: | new → assigned |
---|
comment:6 Changed 7 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
When I switched to PostgreSQL backend, from SQLite, when I click de plugin tab, I Get this error:
Before de migration of de databases, de date format was mm/dd/yy, and then it became dd/mm/yy.
I think that is the cause of the issue.
Best regards