On Jul 22, 7:35 pm, Fabio Maulo <[email protected]> wrote:
> eh ?
... I think I've missed something, sorry. DEBUG message is generated
with a correct SQL string, only in exception dialog it is shown
differently, here is a small to solve it:
Index: AbstractEntityPersister.cs
===================================================================
--- AbstractEntityPersister.cs (revision 12332)
+++ AbstractEntityPersister.cs (working copy)
@@ -2922,7 +2922,7 @@
{
SqlException =
sqle,
Message =
"could not delete: " +
MessageHelper.InfoString(this, id, Factory),
- Sql =
sql.Text.ToString(),
+ Sql = ((string)
sqle.Data["actual-sql-
query"]) ?? sql.Text.ToString(),
EntityName =
EntityName,
EntityId = id
};
does it make sence?