You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have the SQL Output formatted for better readability.
In Hibernate is e.g. a special parameter : formatted_sql
The output in Logger:
Hibernate:
select
emailsv0_.bean_id as bean1_147_,
emailsv0_.bean_module as bean2_147_,
emailsv0_.email_address as email3_147_,
emailsv0_.email_address_caps as email4_147_,
emailsv0_.id as id147_
from
sugarcrm.emails_v emailsv0_
where
emailsv0_.email_address_caps='SDASDSADFDSFSDSD'
and emailsv0_.bean_module='Contacts'
versus
JDBC Logger:
com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
3. select emailsv0_.bean_id as bean1_147_, emailsv0_.bean_module as bean2_147_,
emailsv0_.email_address
as email3_147_, emailsv0_.email_address_caps as email4_147_, emailsv0_.id as
id147_ from sugarcrm.emails_v
emailsv0_ where emailsv0_.email_address_caps='SDASDSADFDSFSDSD' and
emailsv0_.bean_module='Contacts'
Original issue reported on code.google.com by [email protected] on 5 Oct 2011 at 4:49
The text was updated successfully, but these errors were encountered:
Yeah, that is really nice. I really am trying to avoid parsing the SQL though
as that would add a lot of complexity and could impact performance. On the
other hand, it could open up a lot of power and pave the way for a lot of cool
new features. But right now I have no time to embark on something like now.
But it is still something to keep on the wish list for future possibilities.
Original issue reported on code.google.com by
[email protected]
on 5 Oct 2011 at 4:49The text was updated successfully, but these errors were encountered: