Closed Bug 389021 Opened 17 years ago Closed 17 years ago

dumpdata crashes when no id provided

Categories

(Webtools Graveyard :: Graph Server, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: anodelman, Assigned: anodelman)

Details

Attachments

(1 file)

Attached patch fix for dumpdata.cgi crash (deleted) — 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)
Blocks: 386669
Assignee: nobody → anodelman
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
No longer blocks: 386669
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: