From 52bb34cc73a0322389a26e527005abe2d923d2ef Mon Sep 17 00:00:00 2001 From: yinchenjue <44486973+yinchenjue@users.noreply.github.com> Date: Sun, 23 Mar 2025 18:12:32 +0800 Subject: [PATCH] Update XuguInsertBuilder.cs --- .../SqlSugar.XuguCore/Xugu/SqlBuilder/XuguInsertBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar.XuguCore/Xugu/SqlBuilder/XuguInsertBuilder.cs b/Src/Asp.NetCore2/SqlSugar.XuguCore/Xugu/SqlBuilder/XuguInsertBuilder.cs index a0fde1df3..449c20385 100644 --- a/Src/Asp.NetCore2/SqlSugar.XuguCore/Xugu/SqlBuilder/XuguInsertBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar.XuguCore/Xugu/SqlBuilder/XuguInsertBuilder.cs @@ -18,7 +18,7 @@ namespace SqlSugar.Xugu return @"INSERT INTO {0} ({1}) VALUES - ({2}) RETURNING $PrimaryKey未实现返回主键 " + UtilConstants.ReplaceCommaKey.Replace("{", "").Replace("}", ""); + ({2});SELECT LAST_INSERT_ID(); " + UtilConstants.ReplaceCommaKey.Replace("{", "").Replace("}", ""); } else {