changeset 336:5826913bdc6d

commandTempl[2] is never used, so no need to allocate and initialise it.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Wed, 25 Sep 2019 15:10:28 +0200 (2019-09-25)
parents 92cb2fae5df8
children 55735963f605
files src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
+++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
@@ -121,11 +121,11 @@ public class MonetConnection
 	private int curReplySize = -1;	// the server by default uses -1 (all)
 
 	/** A template to apply to each query (like pre and post fixes), filled in constructor */
-	// note: it is made public to the package as it is used from MonetStatement
+	// note: it is made public to the package as queryTempl[2] is used from MonetStatement
 	final String[] queryTempl = new String[3]; // pre, post, sep
 
 	/** A template to apply to each command (like pre and post fixes), filled in constructor */
-	private final String[] commandTempl = new String[3]; // pre, post, sep
+	private final String[] commandTempl = new String[2]; // pre, post
 
 	/** the SQL language */
 	private static final int LANG_SQL = 0;
@@ -320,7 +320,7 @@ public class MonetConnection
 
 			commandTempl[0] = "X";		// pre
 			commandTempl[1] = "";		// post
-			commandTempl[2] = "\nX";	// separator
+			//commandTempl[2] = "\nX";	// separator (is not used)
 		} else if ("mal".equals(language)) {
 			lang = LANG_MAL;
 
@@ -330,7 +330,7 @@ public class MonetConnection
 
 			commandTempl[0] = "";		// pre
 			commandTempl[1] = "";		// post
-			commandTempl[2] = "";		// separator
+			//commandTempl[2] = "";		// separator (is not used)
 		} else {
 			lang = LANG_UNKNOWN;
 		}