Changeset: 619a14401271 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=619a14401271
Modified Files:
java/src/nl/cwi/monetdb/jdbc/MonetResultSet.java
Branch: Oct2010
Log Message:
getJavaType: statement can be null for virtual resultsets
diffs (12 lines):
diff -r 700bc59e09fb -r 619a14401271
java/src/nl/cwi/monetdb/jdbc/MonetResultSet.java
--- a/java/src/nl/cwi/monetdb/jdbc/MonetResultSet.java Wed Nov 10 13:57:10
2010 +0100
+++ b/java/src/nl/cwi/monetdb/jdbc/MonetResultSet.java Wed Nov 10 14:27:39
2010 +0100
@@ -2269,7 +2269,7 @@
*/
private int getJavaType(String sqltype) throws SQLException {
int type = MonetDriver.getJavaType(sqltype);
- if
(((MonetConnection)statement.getConnection()).getBlobAsBinary()) {
+ if (statement != null &&
((MonetConnection)statement.getConnection()).getBlobAsBinary()) {
if (type == Types.BLOB)
type = Types.BINARY;
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list