changeset 826:1074ad1a4c63

Enhance \vsi command by removing a trailing ; terminator from the provided schema name.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Wed, 20 Dec 2023 18:56:37 +0100 (16 months ago)
parents 23f84ff380c2
children b2cbe866d020
files src/main/java/org/monetdb/client/JdbcClient.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/monetdb/client/JdbcClient.java
+++ b/src/main/java/org/monetdb/client/JdbcClient.java
@@ -736,7 +736,9 @@ public final class JdbcClient {
 						} else if (command.equals("\\vsgi_noheader")) {	// used only for internal automated testing
 							MDBvalidator.validateSqlGeomTablesIntegrity(con, false);
 						} else if (command.startsWith("\\vsi ")) {
-							String schema_nm = command.substring(5);
+							String schema_nm = command.substring(5).trim();
+							if (schema_nm.endsWith(";"))
+								schema_nm = schema_nm.substring(0, schema_nm.length() - 1);
 							MDBvalidator.validateSchemaIntegrity(con, schema_nm, true);
 						} else if (command.startsWith("\\vsi_noheader ")) {	// used only for internal automated testing
 							String schema_nm = command.substring(14);