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 type for type modifiers #35

Open
github-actions bot opened this issue Oct 25, 2022 · 0 comments
Open

Support type for type modifiers #35

github-actions bot opened this issue Oct 25, 2022 · 0 comments

Comments

@github-actions
Copy link

Some types could be overridden using the type modifier field within a RowDescription.
Type modifier (see pg_attribute.atttypmod). The meaning of the
modifier is type-specific.
Atttypmod records type-specific data supplied at table creation time (for
example, the maximum length of a varchar column). It is passed to
type-specific input functions and length coercion functions. The value
will generally be -1 for types that do not need atttypmod.

https://www.postgresql.org/docs/current/protocol-message-formats.html
https://www.postgresql.org/docs/current/catalog-pg-attribute.html

Line: 73

psql-wire//row.go

Lines 70 to 80 in 3dbc832

writer.AddInt16(column.AttrNo)
writer.AddInt32(int32(column.Oid))
writer.AddInt16(column.Width)
// TODO: Support type for type modifiers
//
// Some types could be overridden using the type modifier field within a RowDescription.
// Type modifier (see pg_attribute.atttypmod). The meaning of the
// modifier is type-specific.
// Atttypmod records type-specific data supplied at table creation time (for
// example, the maximum length of a varchar column). It is passed to
// type-specific input functions and length coercion functions. The value

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

0 participants