drizzle-team / drizzle-team/drizzle-orm

[BUG]:Regression in error handling

Open
#4,691 3 comments 7 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

0.44.2

### What version of `drizzle-kit` are you using?

0.25.0

### Other packages

_No response_

### Describe the Bug

We just updated from version `0.34.1` to `0.44.2` and one of our tests fails because of regression in error message. Previously when unique constaint was violated, error message clearly said that:

```
duplicate key value violates unique constraint
```

Now it's more vague:

```
Failed query: insert into "X" -params: Y
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.