DapperLib / DapperLib/Dapper

List Support doens't work.

Open
#314 4 comments 1 reaction 1 assignee View on GitHub

@NickCraver is already working on this.

Since Nov 28, 2015.

db:postgresql needs-investigation
Dominant language
C#
Stars
18.4k
Forks
3.7k
Avg merge
5h 8m
Merged PRs (30d)
1

Description

connection.Query<int>(
  "select * from (select 1 as Id union all select 2 union all select 3) as X where Id in @Ids", 
  new { Ids = new int[] { 1, 2, 3 } }
)

I ran this query and got an exception:

Npgsql.NpgsqlException: ERROR: 42883: operator does not exist: integer = integer[]

The SQL I got was:

select * from (select 1 as Id union all select 2 union all select 3) as X where Id in @Ids

Seems the LIST SUPPORT doens't work at all...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.