-
Notifications
You must be signed in to change notification settings - Fork 53
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
Error 42P08: could not determine data type of parameter when using subqueries and string variable parameter #121
Comments
Which version of EntityFramework6.Npgsql are you using? |
EntityFramework6.Npgsql version 3.2.0.0 |
I think I've run into the same issue. Here is a more concise example to reproduce it: EntityFramework6.Npgsql 6.4.0 For context, I'm also upgrading from Npgsql 2.2.7 where it worked. Code:
Resulting SQL:
Exception: |
These commits seem suspicious: Specifically, the handling of PrimitiveTypeKind.String and DbType.String as NpgsqlDbType.Unknown. Trying with 3.0.1, I get these parameters and it works: In 3.0.2, it changes and results in the exception: |
Steps to reproduce
I am executing a LINQ to Entities query with Npgsql 4.0.6, EntityFramework 6.2.0 and EntityFramework6.Npgsql 3.2.0.0
This query has a master type (in_flag) and a subquery for getting the inner collection type (Settings).
in_flag entity is 1 to N relation with in_flag_setting entity in the database.
The issue
The execution of query throws an exception
The text was updated successfully, but these errors were encountered: