Skip to content

Commit f0268c0

Browse files
andy1199spring-builds
authored andcommitted
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 <andy1199@qq.com> (cherry picked from commit 9acc2d7)
1 parent 62b3290 commit f0268c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector-stores/spring-ai-mariadb-store/src/main/java/org/springframework/ai/vectorstore/mariadb/MariaDBSchemaValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void validateTableSchema(String schemaName, String tableName, String idFieldName
7676
logger.error("""
7777
Failed to validate that database supports VECTOR.
7878
Run the following SQL commands:
79-
SELECT @@version;\s
79+
SELECT @@version;
8080
And ensure that version is >= 11.7.1""");
8181
throw new IllegalStateException(e);
8282
}

0 commit comments

Comments
 (0)