Opened 15 years ago

Closed 15 years ago

#13593 closed (duplicate)

custom sql, not enough arguments for format string

Reported by: Oskar Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: 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

When running ./mange.py syncdb, initial SQL data in sql/<modelname>.sql containing '%' gives:
Failed to install custom SQL for main.Post model: not enough arguments for format string

INSERT INTO "main_post" VALUES(7,4,'Lorem 90% ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',1);

Change History (1)

comment:1 by Oskar, 15 years ago

Resolution: duplicate
Status: newclosed

duplicate, #3485

Note: See TracTickets for help on using tickets.
Back to Top