Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Support doens't work. #314

Open
klesh opened this issue Jul 9, 2015 · 4 comments
Open

List Support doens't work. #314

klesh opened this issue Jul 9, 2015 · 4 comments

Comments

@klesh
Copy link

klesh commented Jul 9, 2015

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...

@NickCraver
Copy link
Member

Which version of npgsql was this on? The step from v2 to v3 was major, so I'm wondering which you're hitting this on...or is it both?

@klesh
Copy link
Author

klesh commented Oct 19, 2015

It's been a while, I'm not sure about v2 v3 ? I think it was 1.42 on nuget.org that I downloaded.

@NickCraver
Copy link
Member

I'll see what we can do to make this work reasonably in v3. My understanding is this never worked in v2 or v3, so there's no breaking concern here on the npgsql side.

@NickCraver NickCraver self-assigned this Nov 28, 2015
@perennialinnocence
Copy link

This is caused by Issue #150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants