mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 19:37:34 +08:00
Update pgsql BulkMege array int4
This commit is contained in:
parent
2e22e17304
commit
1e1659b76b
@ -82,10 +82,25 @@ namespace SqlSugar
|
|||||||
result.Type = PgSqlType[key];
|
result.Type = PgSqlType[key];
|
||||||
}
|
}
|
||||||
else if (key?.First() == '_')
|
else if (key?.First() == '_')
|
||||||
|
{
|
||||||
|
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)];
|
var type = PgSqlType[key.Substring(1)];
|
||||||
result.Type = NpgsqlDbType.Array | type;
|
result.Type = NpgsqlDbType.Array | type;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result.Type = null;
|
result.Type = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user