comparison src/main/java/org/monetdb/client/JdbcClient.java @ 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 5788507c01b9
children e890195256ac
comparison
equal deleted inserted replaced
825:23f84ff380c2 826:1074ad1a4c63
734 } else if (command.equals("\\vsgi")) { 734 } else if (command.equals("\\vsgi")) {
735 MDBvalidator.validateSqlGeomTablesIntegrity(con, true); 735 MDBvalidator.validateSqlGeomTablesIntegrity(con, true);
736 } else if (command.equals("\\vsgi_noheader")) { // used only for internal automated testing 736 } else if (command.equals("\\vsgi_noheader")) { // used only for internal automated testing
737 MDBvalidator.validateSqlGeomTablesIntegrity(con, false); 737 MDBvalidator.validateSqlGeomTablesIntegrity(con, false);
738 } else if (command.startsWith("\\vsi ")) { 738 } else if (command.startsWith("\\vsi ")) {
739 String schema_nm = command.substring(5); 739 String schema_nm = command.substring(5).trim();
740 if (schema_nm.endsWith(";"))
741 schema_nm = schema_nm.substring(0, schema_nm.length() - 1);
740 MDBvalidator.validateSchemaIntegrity(con, schema_nm, true); 742 MDBvalidator.validateSchemaIntegrity(con, schema_nm, true);
741 } else if (command.startsWith("\\vsi_noheader ")) { // used only for internal automated testing 743 } else if (command.startsWith("\\vsi_noheader ")) { // used only for internal automated testing
742 String schema_nm = command.substring(14); 744 String schema_nm = command.substring(14);
743 MDBvalidator.validateSchemaIntegrity(con, schema_nm, false); 745 MDBvalidator.validateSchemaIntegrity(con, schema_nm, false);
744 } else if (command.equals("\\vdbi")) { 746 } else if (command.equals("\\vdbi")) {