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

Trait TypmodInOutFuncs for input(input, oid, typmod) function #1878

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

KenjiBrown
Copy link

@KenjiBrown KenjiBrown commented Sep 25, 2024

https://www.postgresql.org/docs/current/sql-createtype.html

The input function can be declared as taking one argument of type cstring, or as taking three arguments of types cstring, oid, integer. The first argument is the input text as a C string, the second argument is the type's own OID (except for array types, which instead receive their element type's OID), and the third is the typmod of the destination column, if known (-1 will be passed if not).

This trait allows for the input function to take three arguments...

@KenjiBrown KenjiBrown marked this pull request as draft September 25, 2024 05:28
@KenjiBrown
Copy link
Author

Still work in progress.

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.

1 participant