#6394 closed (fixed)
custom_sql_for_model(): Small patch to remove comments better
Description ¶
Hi,
this is a small patch to remove comments from custom sql files better.
My custom sql file started like this:
-- CREATE LANGUAGE "plpythonu"; -- Comment
Before my patch the first sql command was '-- CREATE LANGUAGE "plpythonu";'
this caused an empty ProgrammingError with psycopg2.
Change History (4)
by , 17 years ago
Attachment: | sql_comments.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 17 years ago
Cc: | removed |
---|
Note:
See TracTickets
for help on using tickets.
(In [7591]) Fixed #6394: improved comment stripping in initial SQL files. Thanks, Thomas Guttler.