mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-22 08:46:10 +08:00
Update Tests.cs
PostgreSQL syntax error - insert into tcat(breed, name) values(:breed, :name)
This commit is contained in:
+1
-1
@@ -3090,7 +3090,7 @@ option (optimize for (@vals unKnoWn))";
|
||||
conn.Open();
|
||||
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("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 } });
|
||||
r.Count().IsEqualTo(3);
|
||||
|
||||
Reference in New Issue
Block a user