DapperLib / DapperLib/Dapper

a error when use QueryFirstOrDefault ({"[1544b3e3c8004005] execute sql Error"}) ErrorCode -2147467259 int

Open
#1,856 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
18.4k
Forks
3.7k
Avg merge
5h 8m
Merged PRs (30d)
1

Description

I use .net to code,my code likes this : conn.QueryFirstOrDefault (cmd)
I try to use other function that has First , it can not work .
But the function that has single can work .
I look at your code ,the param first or single is used after query from db, they are only a if condition
I can not find the reason

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, SQL statement, or complete exception context are identified. Start by reproducing QueryFirstOrDefault(cmd) and the comparable First and Single calls with a complete command and database setup, then determine whether the failure occurs during SQL execution or result selection; done means the cause is isolated and covered by a reproducible test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.