# HG changeset patch # User Martin van Dinther <martin.van.dinther@monetdbsolutions.com> # Date 1703094997 -3600 # Node ID 1074ad1a4c6308b53ca07e488cb3cd5c827f7a10 # Parent 23f84ff380c2229f8f425b5ab59ef8e5385da883 Enhance \vsi command by removing a trailing ; terminator from the provided schema name. diff --git a/src/main/java/org/monetdb/client/JdbcClient.java b/src/main/java/org/monetdb/client/JdbcClient.java --- 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);