From 4b9c3470475fc178854c95a14064e9981fa0b4f3 Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 22 Nov 2025 22:16:08 +0800 Subject: [PATCH] fix: Fix MariaDBSchemaValidator misleading escaped space error Fixes an issue in MariaDBSchemaValidator where a text block contained a misleading escaped space (\s) not at the end of a line, causing compilation errors like: [MisleadingEscapedSpace] Using \s anywhere except at the end of a line in a text block is potentially misleading. Signed-off-by: Weihua Tan --- .../ai/vectorstore/mariadb/MariaDBSchemaValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector-stores/spring-ai-mariadb-store/src/main/java/org/springframework/ai/vectorstore/mariadb/MariaDBSchemaValidator.java b/vector-stores/spring-ai-mariadb-store/src/main/java/org/springframework/ai/vectorstore/mariadb/MariaDBSchemaValidator.java index f5800fab601..0bc8c27cda8 100644 --- a/vector-stores/spring-ai-mariadb-store/src/main/java/org/springframework/ai/vectorstore/mariadb/MariaDBSchemaValidator.java +++ b/vector-stores/spring-ai-mariadb-store/src/main/java/org/springframework/ai/vectorstore/mariadb/MariaDBSchemaValidator.java @@ -76,7 +76,7 @@ void validateTableSchema(String schemaName, String tableName, String idFieldName logger.error(""" Failed to validate that database supports VECTOR. Run the following SQL commands: - SELECT @@version;\s + SELECT @@version; And ensure that version is >= 11.7.1"""); throw new IllegalStateException(e); }