Opened 16 years ago
Closed 15 years ago
#11761 closed (fixed)
DB error on TestCase execution
Reported by: | Dmitry Shevchenko | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | dmishe@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Pull Requests: | How to create a pull request | ||
Description ¶
While testing my app, everything was ok, when suddenly postgres
started to throw errors (in log) like this:
INSERT INTO "auth_permission" ("name", "content_type_id", "codename") VALUES (E'Can add item_ deferred_added_by_id_date_added_date_updated_item_type_prefix_raw_title_search_data_slug_subtitle_title', 17, E'add_item_deferred_added_by_id_date_added_date_updated_item_type_prefix_raw_title_search_data_slug_subtitle_title')
I don't know why django thinks i have a model with such name. I have
model Item with fields added_by, date_added and so on from that INSERT
line.
I've attached a small but very obscure test suite which fails,
i have no idea why, but removing anything from it will result in test running OK.
Django 1.1, postgres 8.3.7, mysql (tested on myisam and innodb) 5.0.
Change History (4)
by , 16 years ago
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
testcase