diff src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java @ 20:dbb8e7c2dbbf

Added missing catch (NumberFormatException e) to getBytes(col)
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 13 Oct 2016 17:35:47 +0200 (2016-10-13)
parents a0e8adf10d41
children 5ec116ba7d71
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
@@ -901,6 +901,8 @@ public class MonetResultSet extends Mone
 				default:
 					throw new SQLException("Cannot operate on " + types[columnIndex - 1] + " type", "M1M05");
 			}
+		} catch (NumberFormatException e) {
+			throw newSQLNumberFormatException(e);
 		} catch (IndexOutOfBoundsException e) {
 			throw newSQLInvalidColumnIndexException(columnIndex);
 		}