Opened 16 years ago
Closed 16 years ago
#9975 closed (duplicate)
initial data parsing error?
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.0-beta |
Severity: | Keywords: | syncdb, initial data | |
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 I run syncdb with an SQL statement like this in e.g. foo/sql/bar.sql:
INSERT INTO foo_bar (id, sequence)
VALUES (1, 'ATTG--TTC');
it quits with the message:
Failed to install custom SQL for foo.Bar model: unterminated quoted string at or near "'ATTG;" at character *
(* is the character number... I replaced and shortened my example here, so the original character # will not suit)
Importing the bar.sql from postgres client itself works... that's why I think, the parser is interpreting everthing after '--' as comment... even within strings
Has anybody already a bugfix yet? I couldn't find it here, but maybe I just didn't search for the right words.
Thanks,
Antje
This is a dupe of #4680 .