select should verify its arguments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
New
|
Undecided
|
Unassigned |
Bug Description
I wrote this:
Job.blocked_jobs = Select(
Job.id, Job.id == JobDependency.
Prerequisit
Prerequisit
I got this:
Error in test test_blockedJobs (canonical.
Traceback (most recent call last):
File "/home/
testMethod()
File "/home/
self.
File "/home/
result = self._store.
File "/home/
return Connection.
File "/home/
raw_cursor = self.raw_
File "/home/
return Connection.
File "/home/
self.
File "/home/
return function(*args, **kwargs)
File "/home/
return self.__
ProgrammingError: syntax error at or near "="
LINE 1: ...M Job WHERE Job.id IN (SELECT Job.id FROM "_1".id = JobDepen...
This is because PrerequisiteJob.id == JobDependency.
It would be nice if Storm had warned me that the parameters were wrong.