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
There is a log message written in JdbcTemplate starting with "Executing prepared SQL statement", but it remains not continued with actual SQL query being executed due to the fact that JdbcPollingChannelAdapter does not implement SqlProvider interface.
Are there any significant reasons not to provide this functionality which leads to absence of such an important debug information?
The text was updated successfully, but these errors were encountered:
morozovivan95
changed the title
Add an ability to log SQL queries executing in JdbcTemplate class provided by JdbcPollingChannelAdapter class when debug is enabled.
Add an ability to log SQL queries executing in JdbcTemplate class provided by JdbcPollingChannelAdapter class when debug is enabled.
Feb 1, 2019
Fixes: spring-projects#2727
The `JdbcTemplate` logs a message for the sql to execute when it is
supplied by the `QueryProvider`.
* Refactor `JdbcPollingChannelAdapter` to use new introduced internal
`PreparedStatementCreatorWithMaxRows` with the `QueryProvider`
* Refactor `JdbcMessageHandler` to instantiate a `generatedKeysStatementCreator`
based on the `PreparedStatementCreatorFactory`
* Verify in the `JdbcOutboundGatewayParserTests` that both fixes logs
sql queries properly
I found similar problem in the JdbcMessageHandler.
Wasted time to figure out how to simplify our code over there, but looks like there is just on way with the current JdbcTemplate API...
artembilan
added a commit
to artembilan/spring-integration
that referenced
this issue
Feb 1, 2019
Fixes: spring-projects#2727
The `JdbcTemplate` logs a message for the sql to execute when it is
supplied by the `QueryProvider`.
* Refactor `JdbcPollingChannelAdapter` to use new introduced internal
`PreparedStatementCreatorWithMaxRows` with the `QueryProvider`
* Refactor `JdbcMessageHandler` to instantiate a `generatedKeysStatementCreator`
based on the `PreparedStatementCreatorFactory`
* Verify in the `JdbcOutboundGatewayParserTests` that both fixes logs
sql queries properly
* GH-2727: Ensure JDBC queries are logged
Fixes: #2727
The `JdbcTemplate` logs a message for the sql to execute when it is
supplied by the `QueryProvider`.
* Refactor `JdbcPollingChannelAdapter` to use new introduced internal
`PreparedStatementCreatorWithMaxRows` with the `QueryProvider`
* Refactor `JdbcMessageHandler` to instantiate a `generatedKeysStatementCreator`
based on the `PreparedStatementCreatorFactory`
* Verify in the `JdbcOutboundGatewayParserTests` that both fixes logs
sql queries properly
* * Implement all the delegate interfaces for the `PreparedStatementCreatorWithMaxRows`
Affects Version(s): 5.1.2.RELEASE
There is a log message written in
JdbcTemplate
starting with "Executing prepared SQL statement", but it remains not continued with actual SQL query being executed due to the fact that JdbcPollingChannelAdapter does not implementSqlProvider
interface.Are there any significant reasons not to provide this functionality which leads to absence of such an important debug information?
The text was updated successfully, but these errors were encountered: