mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 01:46:18 +08:00
Update pgsql BulkMege array int4
This commit is contained in:
parent
2e22e17304
commit
1e1659b76b
@ -83,8 +83,23 @@ namespace SqlSugar
|
||||
}
|
||||
else if (key?.First() == '_')
|
||||
{
|
||||
var type = PgSqlType[key.Substring(1)];
|
||||
result.Type = NpgsqlDbType.Array | type;
|
||||
if (key == "_int4")
|
||||
{
|
||||
result.Type = NpgsqlDbType.Array | NpgsqlDbType.Integer;
|
||||
}
|
||||
else if (key == "_int2")
|
||||
{
|
||||
result.Type = NpgsqlDbType.Array | NpgsqlDbType.Smallint;
|
||||
}
|
||||
else if (key == "_int8")
|
||||
{
|
||||
result.Type = NpgsqlDbType.Array | NpgsqlDbType.Bigint;
|
||||
}
|
||||
else
|
||||
{
|
||||
var type = PgSqlType[key.Substring(1)];
|
||||
result.Type = NpgsqlDbType.Array | type;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user