#800 closed defect (fixed)
startswith lookup type does not work with underscore
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Quite strange. Using SQLite 3.2.7, django r1238.
>>> for i in attributes.get_iterator(key__startswith = 'threaded'): print i ... threaded_collector.count >>> for i in attributes.get_iterator(key__startswith = 'threaded_'): print i ... >>>
I also tested with foo_ and foo and it exhibited the same behaviour.
Change History (3)
comment:1 by , 20 years ago
| Status: | new → assigned |
|---|
comment:3 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
This is a SQLite problem...I've reproduced it in upcoming unit tests.