xbkaishui commented on a change in pull request #7601:
URL: https://github.com/apache/shardingsphere/pull/7601#discussion_r495555169
##########
File path:
shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/resultset/ResultSetUtil.java
##########
@@ -77,6 +82,49 @@ public static Object convertValue(final Object value, final
Class<?> convertType
return value;
}
}
+
+ private static Object convertURL(final Object value) {
+ String val = value.toString();
+ try {
+ return new URL(val);
+ } catch (MalformedURLException mfe) {
+ throw new ShardingSphereException("Unsupported Date type: URL");
Review comment:
done
##########
File path:
shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/resultset/ResultSetUtil.java
##########
@@ -77,6 +82,49 @@ public static Object convertValue(final Object value, final
Class<?> convertType
return value;
}
}
+
+ private static Object convertURL(final Object value) {
+ String val = value.toString();
+ try {
+ return new URL(val);
+ } catch (MalformedURLException mfe) {
Review comment:
done
----------------------------------------------------------------
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]