Converting Query<MyObject> to QueryFirstOrDefault<MyObject> breaks query
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
No files, tests, or entry points are named. Start by creating the minimal comparison described in the issue using Dapper 2.1.35, Dapper.AOT 2.0.78, and MariaDB 10.11.6, then compare Query with QueryFirstOrDefault for the same SQL. Done means the converted query returns the expected populated object rather than an empty one.
Written by the indexing model from the issue text.
Description
At the suggestion of the Dapper.AOT system I converted SELECT query type calls from Query("SELECT * FROM my_object_table WHERE id=@foo") style calls to the QueryFirstOrDefault() syntax
What happens is for the same SQL, the query returns an empty object so it breaks things.
**Where are you seeing this?
Dapper 2.1.35
Dapper.AOT 2.0.78
MariaDB 10.11.6
To Reproduce
Try a query with Dapper before and after converting to the QueryFirstOrDefault() style
Expected behavior
I expected my queries to work as before
- Dominant language
- C#
- Stars
- 472
- Forks
- 43
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 18
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DapperLib/DapperAOT
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
All issues in DapperLib/DapperAOT
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·