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

feat(pgdialect): allow to convert uint to int #1110

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

vmihailenco
Copy link
Member

This allow to achieve the behavior removed in https://github.com/uptrace/bun/pull/1086/files via an option

@j2gg0s
Copy link
Collaborator

j2gg0s commented Jan 23, 2025

Can you introduce a user case to help us understand better?

@vmihailenco
Copy link
Member Author

I have some legacy code that stores uint64 hash in PostgreSQL. With this option, it continues to work as expected. Without this option, I need to change all uint64 fields to int64 doing the conversion manually. I'd rather avoid such refactoring.

@j2gg0s j2gg0s merged commit 4b02d19 into master Jan 25, 2025
4 checks passed
@j2gg0s j2gg0s deleted the feat/uint-to-int branch January 25, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants