"WHERE x IN y" clause with dapper and postgresql throwing 42601: syntax error at or near \"$1\" "WHERE x IN y" clause with dapper and postgresql throwing 42601: syntax error at or near \"$1\" postgresql postgresql

"WHERE x IN y" clause with dapper and postgresql throwing 42601: syntax error at or near \"$1\"


In PostgreSQL, you can't use IN to check whether a value is inside an array, you have to use the following PostgreSQL-specific syntax: where t.name = ANY (@tagsParam). See the section 8.15.5 in the PostgreSQL docs.