Open Garry-Gu opened 2 years ago
Having same problem. It appears to happen randomly, once it started to happen it will continue happening in every query :/
SQL generated correctly
SELECT COUNT(*) AS "Total" FROM "travel"
WHERE (("travel"."domain" = $1) AND ("travel"."status" IN ($2, $3, $4)))
SQL generated with error:
SELECT COUNT(*) AS "Total" FROM "travel"
WHERE (("y_1"."domain" = $1) AND ("y_1"."status" IN ($2, $3, $4)))
I have an interface that will query boxtask. For the first time, I will query whether there are boxes in composite status, and for the second time, I will query the number of items of a task. When I monitor the SQL generation, I find that when count is used, the alias of the table will remain at [y_1]
This is the generated SQL:
-------------------------------------------another sql
This is the generated SQL:
Cause error: Cannot bind the identifier "y_1. Taskno" composed of multiple parts.
DapperExtensions:V1.7.0