Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 2afdb4f

Browse files
authored
Add NativeTypes int[] alias and bool[] boolean[] (#645)
Added int[] alias to match Postgres alias. Also added missing boolean array types.
1 parent f5c9e8f commit 2afdb4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ServiceStack.OrmLite.PostgreSQL/PostgreSQLDialectProvider.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,16 @@ public override string GetLastInsertIdSqlSuffix<T>()
580580
{ "hstore", NpgsqlDbType.Hstore },
581581
{ "text[]", NpgsqlDbType.Array | NpgsqlDbType.Text },
582582
{ "short[]", NpgsqlDbType.Array | NpgsqlDbType.Smallint },
583+
{ "int[]", NpgsqlDbType.Array | NpgsqlDbType.Integer },
583584
{ "integer[]", NpgsqlDbType.Array | NpgsqlDbType.Integer },
584585
{ "bigint[]", NpgsqlDbType.Array | NpgsqlDbType.Bigint },
585586
{ "real[]", NpgsqlDbType.Array | NpgsqlDbType.Real },
586587
{ "double precision[]", NpgsqlDbType.Array | NpgsqlDbType.Double },
587588
{ "numeric[]", NpgsqlDbType.Array | NpgsqlDbType.Numeric },
588589
{ "timestamp[]", NpgsqlDbType.Array | NpgsqlDbType.Timestamp },
589590
{ "timestamp with time zone[]", NpgsqlDbType.Array | NpgsqlDbType.TimestampTz },
591+
{ "bool[]", NpgsqlDbType.Array | NpgsqlDbType.Boolean },
592+
{ "boolean[]", NpgsqlDbType.Array | NpgsqlDbType.Boolean },
590593
};
591594

592595
public override void SetParameter(FieldDefinition fieldDef, IDbDataParameter p)

0 commit comments

Comments
 (0)