Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent value types for BigInt fields between DB vendors #22043

Open
paescuj opened this issue Apr 1, 2024 · 0 comments
Open

Inconsistent value types for BigInt fields between DB vendors #22043

paescuj opened this issue Apr 1, 2024 · 0 comments

Comments

@paescuj
Copy link
Member

paescuj commented Apr 1, 2024

Depending on the DB vendor, a different value type for BigInt fields is returned. For example, for PostgreSQL it's a string (as expected) whereas for SQLite it's a number:

// PostgreSQL
"bigint": "1000"

// SQLite
"bigint": 1000

Noticed in #21957.

Slightly related, because it might also be inconsistent: #20615 (knex/knex#387)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants