mosence commented on PR #5560:
URL: https://github.com/apache/seatunnel/pull/5560#issuecomment-1771919123

   > @mosence I have a small question, why not use rs.getObject(resultSetIndex, 
Integer.class) approach, which is more concise and easier to understand?
   
   Because not all driver support this method.
   
   This method note that:
   ```
   @return an instance of {@code type} holding the column value
   @throws SQLException if conversion is not supported, type is null or
           another error occurs. The getCause() method of the
   exception may provide a more detailed exception, for example, if
   a conversion error occurs
   @throws SQLFeatureNotSupportedException if the JDBC driver does not support
   this method
   @since 1.7
   ```
   
   When driver support jdk1.6, It will be not available. 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to