Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在泰语环境中,ExecuteInsertedAsync 翻译Sql Server语句出错 #1910

Open
KelvinTse2017 opened this issue Nov 1, 2024 · 3 comments

Comments

@KelvinTse2017
Copy link

KelvinTse2017 commented Nov 1, 2024

问题描述及重现代码:

微信图片_20241101170438 微信图片_20241101170632
        Thread.CurrentThread.CurrentCulture = new CultureInfo("th-TH");
        var Datas = await Svc.Fsql.Insert(Adds)
             .WithTransaction(Tran)
             .ExecuteInsertedAsync();

数据库版本

sql server 2022

安装的Nuget包

FreeSql.Provider.SqlServer.dll
3.2.815

.net framework/. net core? 及具体版本

.net 6.0

####sql 语句
INSERT INTO [CT_Sys_OwnerMenuPermission]([Id], [CreatedBy], [CreatedUtcTime], [OwnerType], [OwnerId], [MenuId], [MenuEventCode]) V OUTPUT INSERTED.[Id] as [Id], INSERTED.[CreatedBy] as [CreatedBy], INSERTED.[CreatedUtcTime] as [CreatedUtcTime], INSERTED.[OwnerType] as [OwnerType], INSERTED.[OwnerId] as [OwnerId], INSERTED.[MenuId] as [MenuId], INSERTED.[MenuEventCode] as [MenuEventCode]ALUES(@Id_0, @CreatedBy_0, xxx

@2881099
Copy link
Collaborator

2881099 commented Nov 1, 2024

具体 是什么原因?验证是 indexOf 下标不是从 0 开始 的?

@KelvinTse2017
Copy link
Author

我单独把string 字符串拉出来,不同语言环境解析正常。红色标志是我的猜测。

@2881099
Copy link
Collaborator

2881099 commented Nov 2, 2024

期待 debug 一下源码,确定原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants