Skip to content

The SQL statement of MariaDB vector MariaDBSchema Validator needs to be enclosed in quotation marks #3492

@ming0804

Description

@ming0804

Bug description

Execution without quotation marks will not yield results

Environment
spring ai 1.0.0
spring-ai-mariadb-store 1.0.0

Steps to reproduce

schemaValidation(true)

Image

String sql = String.format(	"SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s'",	(schemaName == null) ? "SCHEMA()" : schemaName, tableName); 

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions