# HG changeset patch
# User Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
# Date 1553797484 -3600
# Node ID 402f95f4be91dc9350a919f5c5a37aab25e4491c
# Parent  928df7febec4ae63387e25d8f48d22875ee9816e
Small improvements

diff --git a/src/main/java/nl/cwi/monetdb/jdbc/MonetCallableStatement.java b/src/main/java/nl/cwi/monetdb/jdbc/MonetCallableStatement.java
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetCallableStatement.java
+++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetCallableStatement.java
@@ -119,7 +119,7 @@ public class MonetCallableStatement
 		int len = query.length();
 		StringBuilder buf = new StringBuilder(len);
 		int countAccolades = 0;
-		// simple scanner which copies all characters except the first '{' and next '}' character
+		// simple scanner which copies all characters except the first '{' and matching '}' character
 		// we currently do not check if 'call' appears after the first '{' and before the '}' character
 		// we currently also do not deal correctly with { or } appearing as comment or as part of a string value
 		for (int i = 0; i < len; i++) {
@@ -152,11 +152,11 @@ public class MonetCallableStatement
 	 */
 	private int nameToIndex(String parameterName) throws SQLException {
 		if (parameterName == null)
-			throw new SQLException("Missing parameterName value", "22010");
+			throw new SQLException("Missing parameterName value", "22002");
 		try {
 			return Integer.parseInt(parameterName);
 		} catch (NumberFormatException nfe) {
-			throw new SQLException("Cannot convert parameterName '" + parameterName + "'to integer value", "22010");
+			throw new SQLException("Cannot convert parameterName '" + parameterName + "' to integer value", "22010");
 		}
 	}