Reformat the SQL queries in the ticket subsystem to use multi-line strings when needed.
Authored by: cboos 2010-03-01
Parent: [r9318]
Child: [r9320]