Changeset: 352b54ff0436 for monetdb-java URL: https://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=352b54ff0436 Modified Files: ChangeLog release.txt src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java Branch: default Log Message:
Implemented ResultSet method getNCharacterStream() diffs (56 lines): diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ # This file is updated with Maddlog * Thu Aug 17 2017 Martin van Dinther <[email protected]> +- Implemented ResultSet method getNCharacterStream() - In class MonetClob implemented methods getCharacterStream() and getCharacterStream(long pos, long length). Method getCharacterStream() is called by DBeaver to fetch the Clob value. diff --git a/release.txt b/release.txt --- a/release.txt +++ b/release.txt @@ -64,9 +64,9 @@ Currently implemented JDBC 4.1 interface The next features/methods are NOT implemented: - getArray - getAsciiStream, getUnicodeStream - - getNCharacterStream, getNClob, getNString + - getNClob - getRef, getRowId, getSQLXML - - all methods related to updateable result sets + - All methods related to updateable result sets * java.sql.ResultSetMetaData diff --git a/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java b/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java --- a/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java +++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java @@ -515,7 +515,7 @@ public class MonetResultSet extends Mone */ @Override public Reader getNCharacterStream(int columnIndex) throws SQLException { - throw newSQLFeatureNotSupportedException("getNCharacterStream"); + return getCharacterStream(columnIndex); } /** @@ -534,7 +534,7 @@ public class MonetResultSet extends Mone */ @Override public Reader getNCharacterStream(String columnLabel) throws SQLException { - throw newSQLFeatureNotSupportedException("getNCharacterStream"); + return getCharacterStream(findColumn(columnLabel)); } /** @@ -2534,7 +2534,7 @@ public class MonetResultSet extends Mone */ @Override public String getNString(String columnLabel) throws SQLException { - return getNString(findColumn(columnLabel)); + return getString(findColumn(columnLabel)); } /** _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
