Opened 10 years ago
Last modified 6 years ago
#26192 closed Bug
Same as #26185 but without extra but with annotate — at Initial Version
| Reported by: | Sven R. Kunze | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Can Sarıgöl | 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
MyModel.objects.annotate(my_column=Value(0)).order_by('my_column').values_list('id')
ProgrammingError: non-integer constant in ORDER BY
LINE 1: ...odel"."id" FROM "mymodel" ORDER BY 'asdf' ASC...
Does it qualify as a bug this time? ;-)
Note:
See TracTickets
for help on using tickets.