You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2023/07/14 16:09:00 UTC
[jira] [Commented] (OFBIZ-12837) Log SQL statement in exceptions in EntitySQLProcessor
[ https://issues.apache.org/jira/browse/OFBIZ-12837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743211#comment-17743211 ]
Jacques Le Roux commented on OFBIZ-12837:
-----------------------------------------
Thanks Paul,
Taking into account your comment in OFBIZ-11926 I totally agree with you.
Regarding your patch, it's also OK with me but the hunk {{[@@ -421,7 +423,7 @@]}} that sounds useless to me.
> Log SQL statement in exceptions in EntitySQLProcessor
> -----------------------------------------------------
>
> Key: OFBIZ-12837
> URL: https://issues.apache.org/jira/browse/OFBIZ-12837
> Project: OFBiz
> Issue Type: Bug
> Components: framework/entity
> Reporter: Paul Foxworthy
> Assignee: Paul Foxworthy
> Priority: Minor
> Attachments: OFBIZ-12837_log_sql_statement_in_exceptions_in_EntitySQLProcessor.patch
>
>
> The combination of OFBIZ-11926 and OFBIZ-12386 means the field
>
> {{SQLProcessor.sql}}
>
> is never set, but it is assumed to be there in several catches - see the patch.
>
> If an exception occurs, you'll get a "null" and not the statement that caused the exception.
>
> I had a bit to say about how the problem arose in a comment on OFBIZ-11926.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)