Skip to content

Commit 2588ccb

Browse files
authored
Merge pull request #2194 from xye1989/fix/clickhouse-column-error
fix: 修复 ClickHouse 读取到错误列导致插入失败问题
2 parents d5efa45 + 2a2d61d commit 2588ccb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Providers/FreeSql.Provider.ClickHouse/Curd/ClickHouseInsert.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ async protected override Task<int> RawExecuteAffrowsAsync(CancellationToken canc
188188
var columns = new string[_table.ColumnsByPosition.Length];
189189
for (var i = 0; i < columns.Length; i++)
190190
{
191-
columns[i] = _table.ColumnsByPosition[i].CsName;
191+
columns[i] = _table.ColumnsByPosition[i].Attribute.Name;
192192
}
193193
using (var conn = await _orm.Ado.MasterPool.GetAsync())
194194
{

0 commit comments

Comments
 (0)