cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <>
Subject [jira] Commented: (CAY-1300) Format queries in QueryLogger
Date Mon, 02 Nov 2009 03:36:59 GMT


Andrey Razumovsky commented on CAY-1300:

The idea is excellent. May I suggest that all JOINs are also formatted to be placed on new
line? Some sort of QueryFormatter will also be fine.  Also using ThreadLocal for setting "isFormatting"
property forces to make this call at any request to format queries. So I think it'll be a
good idea to have some static default value for "isFormatting", set by a static call or by
adding something like "-Dcayenne.query.formatting=true" to command line

> Format queries in QueryLogger
> -----------------------------
>                 Key: CAY-1300
>                 URL:
>             Project: Cayenne
>          Issue Type: New Feature
>          Components: Cayenne Core Library
>            Reporter: Evgeny Ryabitskiy
>             Fix For: 3.0
>         Attachments: CAY-1300.patch
> Sometimes it's hard to read queries from Logs when queries are huge.
> It will be nice if user can enable nice query formatting for debug purposes.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message