tristaZero commented on issue #2923: when using EncryptPreparedStatement to 
savebatch occours error
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2923#issuecomment-528332022
 
 
   Got it, maybe we can split this task to two small ones.
   First, if preparedStatemnt == null in getRoutedStatements(), emptyList will 
be returned. This step will stop NPE, but `set queryTime()` actually is not 
executed, for there is no preparedStatement.
   Second, we may cache the value of `queryTime()` in 
AbstractStatementAdapter.java. When executeUpdate() or execute() is called, at 
this time, we relay the action, i.e, setQueryTime().
   
   What's your opinion? we can do first one, i think.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to