Code

Opened 7 years ago

Closed 7 years ago

#3806 closed (duplicate)

Commenting INSERT statements causes error in fixtures

Reported by: joe4444 Owned by: adrian
Component: Tools Version: master
Severity: Keywords: fixtures sql comment
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

"Normal" comments are no problem, but when I try to comment an INSERT statement in one of my sql/modelname.sql files then run ./manage.py reset appname it doesn't know how to handle the commented SQL and dies. For example:

--This file populates the db tables with initial data.        # no problem
--INSERT INTO "myapp_foobar" ("blah") VALUES ('asdf');        # cannot be processed

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

#4680 should fix this.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.