From f25e56be586dae3c78b7127953091f396fc00101 Mon Sep 17 00:00:00 2001
From: 2881099 <2881099@qq.com>
Date: Thu, 12 Nov 2020 19:34:34 +0800
Subject: [PATCH] =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=20SqlExt.FindInSet=20fin?=
=?UTF-8?q?d=5Fin=5Fset=20=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=87=BD=E6=95=B0?=
=?UTF-8?q?=E8=A7=A3=E6=9E=90=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../FreeSqlGlobalExpressionCallExtensions.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/FreeSql/Extensions/FreeSqlGlobalExpressionCallExtensions.cs b/FreeSql/Extensions/FreeSqlGlobalExpressionCallExtensions.cs
index 2524d1af..69ac375f 100644
--- a/FreeSql/Extensions/FreeSqlGlobalExpressionCallExtensions.cs
+++ b/FreeSql/Extensions/FreeSqlGlobalExpressionCallExtensions.cs
@@ -167,6 +167,18 @@ namespace FreeSql
///
///
public static IGroupConcat GroupConcat(object column) => SqlExtExtensions.GroupConcat(column);
+ ///
+ /// MySql find_in_set(str, strlist)
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static int FindInSet(TValue str, string strlist)
+ {
+ expContext.Value.Result = $"find_in_set({expContext.Value.ParsedContent["str"]}, {expContext.Value.ParsedContent["strlist"]})";
+ return 0;
+ }
///
/// PostgreSQL string_agg(.., ..)