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
Hello!
I use JdbcTemplate in spring boot. Try to execute update request with null parameter, e.g. update customer set name = null, isValid = null
And I got name = 12, isValid = -7 in my log. And in method beforeQuery(execInfo: ExecutionInfo, queryInfoList: List<QueryInfo>) in queryInfoList I see the same numbers of type.
I want to get log name = null, isValid = null
The text was updated successfully, but these errors were encountered:
When setNull is called, there is a SetNullParameterValueConverter that handles formatting the null value.
For example, setNull(index,Types.VARCHAR) is converted to NULL(VARCHAR).
This is the default implementation.
When setXyz(index, null) is called, the following logic converts to the display value as null.
value = getDisplayValueForRegisterOutParameter(param);
} else {
value = getDisplayValue(param);
}
returnvalue;
}
You may have a custom converter, log entry creator, etc that simply shows an argument value.
In case it is not the case and the issue still persists, please provide a minimal sample project that reproduces the issue.
Hello!
I use JdbcTemplate in spring boot. Try to execute update request with null parameter, e.g.
update customer set name = null, isValid = null
And I got
name = 12, isValid = -7
in my log. And in methodbeforeQuery(execInfo: ExecutionInfo, queryInfoList: List<QueryInfo>)
in queryInfoList I see the same numbers of type.I want to get log
name = null, isValid = null
The text was updated successfully, but these errors were encountered: