Opened 13 years ago
Closed 11 years ago
#17027 closed New feature (fixed)
Let ExpressionNodes use __pow__
Reported by: | Owned by: | fhahn | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | flo@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Not sure what consequences this has for databases that don't support raising to powers, but I didn't see any exception handling for the +, -, /, %, etc so I didn't add it to this patch.
Please send any feedback.
Attachments (1)
Change History (5)
by , 13 years ago
Attachment: | add_pow_to_expression_node.diff added |
---|
comment:1 by , 13 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|---|
Needs tests: | set |
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 12 years ago
Cc: | added |
---|---|
Needs tests: | unset |
Owner: | changed from | to
Patch needs improvement: | unset |
Status: | new → assigned |
Version: | 1.3 → master |
comment:3 by , 11 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Pending a final ORM review, this looks good to me, and I've verified the tests are passing on all backends. Updated PR.
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
I've updated the patch, added tests and created a pull request: https://github.com/django/django/pull/746
Oracle, Postgres and Mysql have a power function, but there isn't one in sqlite.