- 完善 DuckDB 测试;

This commit is contained in:
2881099
2024-08-17 15:55:35 +08:00
parent a1013a39bf
commit a576d157fb
6 changed files with 29 additions and 8 deletions

View File

@ -47,6 +47,7 @@ namespace FreeSql
case DataType.CustomPostgreSQL:
case DataType.KingbaseES:
case DataType.ShenTong:
case DataType.DuckDB:
case DataType.Firebird: //firebird 只支持单条插入 returning
if (_tableIdentitys.Length == 1 && _tableReturnColumns.Length == 1)
{
@ -115,6 +116,7 @@ namespace FreeSql
case DataType.CustomPostgreSQL:
case DataType.KingbaseES:
case DataType.ShenTong:
case DataType.DuckDB:
await DbContextFlushCommandAsync(cancellationToken);
var rets = await this.OrmInsert(data).ExecuteInsertedAsync(cancellationToken);
if (rets.Count != data.Count()) throw new Exception(DbContextStrings.SpecialError_BatchAdditionFailed(_db.OrmOriginal.Ado.DataType));