format_sql property of hibernate

Description

With hibernate it is possible to have the following tag in the config file

<property name="hibernate.format_sql">true</property>

This is not recognised by nhibernate.

Could this be implemented ?

Environment

None

Activity

Show:

Fabio Maulo March 17, 2009 at 9:13 AM

Yes it is possible.
I'll change the title of the issue.

Samuel Berthelot March 17, 2009 at 2:31 AM

Sorry I didn't get back to you earlier.

I was interested in having the sql nicely formated in the log file. Anytime NHibernate performs a database transaction, it writes the SQL to the log file. But it's not nicely formated, it's just a very long string with no line breaks. Maybe this is just not possible ? I don't think it relates to SchemaExport, does it ?

Fabio Maulo March 16, 2009 at 9:36 PM

And? Are you interested only in SchemaExport ?

Fabio Maulo March 13, 2009 at 10:08 PM

Yes, but H3 are doing it only in the Console output of SchemaExport and not everywhere.
Is this what you are looking for ?

Samuel Berthelot March 11, 2009 at 9:13 AM

I'm not sure what you mean. If I refer to hibernate doc :

hibernate.format_sql : Formats and indents sql in the console and in the log log
e.g. true | false

That's what I'm looking for.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created March 11, 2009 at 8:38 AM
Updated July 22, 2009 at 7:21 AM
Resolved April 20, 2009 at 8:46 AM
Who's Looking?