wsj1028 opened a new issue #10394:
URL: https://github.com/apache/shardingsphere/issues/10394
I use DB2 to query the database and report an error,The test code is as
follows
` @Resource(name = "shardingDataSource")
private DataSource dataSource;
Connection connection = dataSource.getConnection();
String sql = "select * from t_order";
PreparedStatement preparedStatement =
connection.prepareStatement(sql);
ResultSet resultSet = preparedStatement.executeQuery();
while (resultSet.next()){
System.out.println("order_id: "+resultSet.getLong("order_id")
+", user_id: "+ resultSet.getLong("user_id"));
}
resultSet.close();
preparedStatement.close();
connection.close();
`
The error is as follows,
`com.ibm.db2.jcc.am.SqlException: [jcc][t4][10120][10898][4.28.11] 操作无效:已关闭
result set。 ERRORCODE=-4470, SQLSTATE=null
`
--
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]