diff src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java @ 152:352b54ff0436

Implemented ResultSet method getNCharacterStream()
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 17 Aug 2017 19:31:42 +0200 (2017-08-17)
parents 3d5ea891bb74
children 7c9e386fe49a
line wrap: on
line diff
--- 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));
 	}
 
 	/**