DapperLib / DapperLib/Dapper

RAW select on postgres never returns

Open
#1,464 4 comments 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

On a raw query like below, causes the dapper doesn`t never return or "error unknown 0 code"

  • sum(n_numeric_field * (n_other_numer_field/1000) * (n_other_numer_field/1000))

After some hours I discovered it is caused because this formula results a number with a lot of decimals that do not fit on decimal on c# .net core. To solve this I needed to force round on query.

Dapper needs to improve handle this kind of error and show better messages
Error.mp4.zip

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 file, test, or entry point is identified. Reproduce the raw PostgreSQL query using the shown decimal expression, then trace how Dapper surfaces the conversion failure; done means the query reports a useful error instead of hanging or returning an unknown error code.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.