Mercurial > hg > monetdb-java
changeset 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 | 7acc09f59b21 |
children | 3fa84d6924a6 |
files | src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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); }