Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#6394 closed (fixed)

custom_sql_for_model(): Small patch to remove comments better

Reported by: Thomas Güttler <hv@…> Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Attachments (1)

sql_comments.diff (637 bytes ) - added by Thomas Güttler <hv@…> 17 years ago.

Download all attachments as: .zip

Change History (4)

by Thomas Güttler <hv@…>, 17 years ago

Attachment: sql_comments.diff added

comment:1 by Jacob, 17 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Jacob, 16 years ago

Resolution: fixed
Status: newclosed

(In [7591]) Fixed #6394: improved comment stripping in initial SQL files. Thanks, Thomas Guttler.

comment:3 by Thomas Güttler, 16 years ago

Cc: hv@… removed
Note: See TracTickets for help on using tickets.
Back to Top