custom_sql_for_model(): Small patch to remove comments better
|Reported by:||Thomas Güttler <hv@…>||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)
Changed 8 years ago by Thomas Güttler <hv@…>
comment:1 Changed 7 years ago by jacob
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin