yunzhongshu opened a new issue #2891: When use mybatis recent version how to 
use executeQuery()
URL: https://github.com/apache/incubator-shardingsphere/issues/2891
 
 
   ## Question
   When use mybatis3.4.x for query. It will invoke 
PreparedStatementHandler.query, it's code is :
   ```
     public <E> List<E> query(Statement statement, ResultHandler resultHandler) 
throws SQLException {
       PreparedStatement ps = (PreparedStatement) statement;
       ps.execute();
       return resultSetHandler.<E> handleResultSets(ps);
     }
   ``` 
   It will invoke the PreparedStatement.execute() not the 
PreparedStatement.executeQuery(), so it can't invoke the 
ShardingPrepareStatement.executeQuery() too.
   So How Can't i invokeçš„executeQuery() when use Mybatis?
   
   Thanks a lot!

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to