 * Fix the SQL generated by the query modules so that constraints on multiple custom fields work.  * Ordering of the query results is now correct for status, resolution and severity (using the    enum value instead of the name).  * Avoid string concatenation when assembling the SQL query.  * Some other simplifications of the code.
 * Fix the SQL generated by the query modules so that constraints on multiple custom fields work.
 * Ordering of the query results is now correct for status, resolution and severity (using the
   enum value instead of the name).
 * Avoid string concatenation when assembling the SQL query.
 * Some other simplifications of the code.


git-svn-id: 0d96b0c1a6983ccc08b3732614f4d6bfcf9cbb42@1033 af82e41b-90c4-0310-8c96-b1721e28e2e2

rbaumg/trac,rbaumg/trac,rbaumg/trac,rbaumg/trac