diff src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java @ 163:e398c27acf7e

Implemented PreparedStatement methods setNCharacterStream(int, Reader) and setNCharacterStream(int, Reader, long).
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 07 Sep 2017 16:49:40 +0200 (2017-09-07)
parents fa42a669eddc
children 7c9e386fe49a
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java
+++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java
@@ -1539,7 +1539,7 @@ public class MonetPreparedStatement
 	 */
 	@Override
 	public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
-		throw newSQLFeatureNotSupportedException("setNCharacterStream");
+		setCharacterStream(parameterIndex, value, 0);
 	}
 
 	/**
@@ -1559,7 +1559,7 @@ public class MonetPreparedStatement
 	public void setNCharacterStream(int parameterIndex, Reader value, long length)
 		throws SQLException
 	{
-		throw newSQLFeatureNotSupportedException("setNCharacterStream");
+		setCharacterStream(parameterIndex, value, length);
 	}
 
 	/**
@@ -2084,7 +2084,7 @@ public class MonetPreparedStatement
 
 				@Override
 				public void writeCharacterStream(Reader x) throws SQLException {
-					setCharacterStream(paramnr, x);
+					setCharacterStream(paramnr, x, 0);
 				}
 
 				@Override