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

Expose type modifier in Column struct #1145

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SergeiPatiakin
Copy link

What

Expose the 4-byte type-specific type modifier on the Column struct

Why

I would like access type modifiers for prepared statement columns. E.g. for a numeric column I would like to get the numeric precision and scale. For a varchar column I would like to get the varchar length limit.

Context

This is an extension of #1084 where other table and column OIDs were exposed in Column, and exposing type modifiers was noted as a possibility.

@rishitesh-snt
Copy link

rishitesh-snt commented Aug 29, 2024

+1 for this PR. This would enable the result set handling in a much better way rather than falling back to defaults. In fact, rather than type modifier, we should expose the derived precision & scale at the upper level API like Statement.

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