From d013737c8725cc3b3091a5ae1230af6e1580c62b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 11 Mar 2022 14:18:06 +0800 Subject: [PATCH] Update mysql --- .../MySql/SqlBuilder/MySqlUpdateBuilder.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Src/Asp.Net/SqlSugar.MySqlConnector/MySql/SqlBuilder/MySqlUpdateBuilder.cs b/Src/Asp.Net/SqlSugar.MySqlConnector/MySql/SqlBuilder/MySqlUpdateBuilder.cs index 4c3054872..4c7d9132f 100644 --- a/Src/Asp.Net/SqlSugar.MySqlConnector/MySql/SqlBuilder/MySqlUpdateBuilder.cs +++ b/Src/Asp.Net/SqlSugar.MySqlConnector/MySql/SqlBuilder/MySqlUpdateBuilder.cs @@ -128,6 +128,14 @@ namespace SqlSugar.MySqlConnector return Convert.ToInt64(value); } } + else if (type == UtilConstants.LongType) + { + return GetString(value); + } + else if (type == UtilConstants.IntType) + { + return GetString(value); + } else if (type == UtilConstants.BoolType) { return value.ObjToBool() ? "1" : "0";