Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 1134 Map inet type to InetAddress #1527

merged 10 commits into from Jul 23, 2019

fix cast pgobject

  • Loading branch information...
myowaithant9 committed Jul 16, 2019
commit 3c5981b5a75fc6b14949d19f7995a26de6882d66
@@ -3324,11 +3324,7 @@ public void updateArray(String columnName, Array x) throws SQLException {
if (addressString == null) {
return null;
try {
return type.cast(InetAddress.getByName(((PGobject) addressString).getValue()));
} catch (UnknownHostException e) {
throw new SQLException("could not create inet address from string '" + addressString + "'");
return type.cast(getObject(columnIndex));
// JSR-310 support
//#if >= "JDBC4.2"
} else if (type == LocalDate.class) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.