From 63ecd5373c55b12963eecc810f825bdbdefdf065 Mon Sep 17 00:00:00 2001 From: Marco Serralheiro Date: Thu, 7 Nov 2024 22:20:44 +0000 Subject: [PATCH] Fix SQL command generation in OrchardCore.Data.DbConnectionValidator's GetDocumentCommandText (#16967) Co-authored-by: Marco Serralheiro --- .../OrchardCore.Data.YesSql/DbConnectionValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore/OrchardCore.Data.YesSql/DbConnectionValidator.cs b/src/OrchardCore/OrchardCore.Data.YesSql/DbConnectionValidator.cs index 895f015d49a..8fd0539cb8c 100644 --- a/src/OrchardCore/OrchardCore.Data.YesSql/DbConnectionValidator.cs +++ b/src/OrchardCore/OrchardCore.Data.YesSql/DbConnectionValidator.cs @@ -174,7 +174,7 @@ private static string GetDocumentCommandText(SqlBuilder sqlBuilder, string docum sqlBuilder.WhereAnd($"Type = '{_shellDescriptorTypeColumnValue}'"); } - return sqlBuilder.ToString(); + return sqlBuilder.ToSqlString(); } private static (IConnectionFactory connectionFactory, ISqlDialect sqlDialect) GetFactoryAndSqlDialect(