Closed
Bug 389021
Opened 17 years ago
Closed 17 years ago
dumpdata crashes when no id provided
Categories
(Webtools Graveyard :: Graph Server, defect)
Webtools Graveyard
Graph Server
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: anodelman, Assigned: anodelman)
Details
Attachments
(1 file)
799 bytes,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
This small patch fixes this error when dumpdata.cgi is run with no inputs.
Traceback (most recent call last):
File "/var/www/html/graphs/dumpdata.cgi", line 111, in ?
dumpData(zfile, setid, starttime, endtime)
File "/var/www/html/graphs/dumpdata.cgi", line 56, in dumpData
cur.execute("SELECT B.id, B.machine, B.branch, B.test, B.date FROM dataset_info as B WHERE id IN (%s) %s %s ORDER BY id" % (setid, s1, s2,))
File "/var/www/html/graphs/databases/mysql.py", line 16, in execute
return MySQLdb.cursors.Cursor.execute(self, query, args)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 163, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY id' at line 1")
Attachment #273181 -
Flags: review?(vladimir)
Attachment #273181 -
Flags: review?(vladimir) → review+
Updated•17 years ago
|
Assignee: nobody → anodelman
Comment 1•17 years ago
|
||
Checking in dumpdata.cgi;
/cvsroot/mozilla/webtools/new-graph/dumpdata.cgi,v <-- dumpdata.cgi
new revision: 1.3; previous revision: 1.2
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•