Commit 00224317 authored by Marc Gravell's avatar Marc Gravell

Merge branch 'master' of git@github.com:StackExchange/dapper-dot-net.git

parents ad95cfc2 d17bdb54
...@@ -3127,7 +3127,7 @@ public void TestPostresqlArrayParameters() ...@@ -3127,7 +3127,7 @@ public void TestPostresqlArrayParameters()
conn.Open(); conn.Open();
IDbTransaction transaction = conn.BeginTransaction(); IDbTransaction transaction = conn.BeginTransaction();
conn.Execute("create table tcat ( id serial not null, breed character varying(20) not null, name character varying (20) not null);"); conn.Execute("create table tcat ( id serial not null, breed character varying(20) not null, name character varying (20) not null);");
conn.Execute("insert tcat(breed, name) values(:breed, :name) ", Cats); conn.Execute("insert into tcat(breed, name) values(:breed, :name) ", Cats);
var r = conn.Query<Cat>("select * from tcat where id=any(:catids)", new { catids = new[] { 1, 3, 5 } }); var r = conn.Query<Cat>("select * from tcat where id=any(:catids)", new { catids = new[] { 1, 3, 5 } });
r.Count().IsEqualTo(3); r.Count().IsEqualTo(3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment