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

Support directly inserting pgtype.Bits into a column of type BIT(n) using named args #2079

Open
Mikephii opened this issue Jul 10, 2024 · 0 comments

Comments

@Mikephii
Copy link

Is your feature request related to a problem? Please describe.

Right now if i try and directly insert pgtype.Bits into column of type BIT(n) using named args i get an incorrect binary type error. as a solution im converting my pgtype.Bits into strings of "1"s and "0"s like "1010011...1111001"

Describe the solution you'd like

Ideally pgtype.Bits -> Bit(n) is supported. scanning from a query result into a pgtype.bits works funnily enough (BIT(n) -> pgtype.Bits)

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

No branches or pull requests

1 participant