Skip to content

Add support for SPI Parameters #378

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

Closed
mp911de opened this issue Jan 6, 2021 · 0 comments
Closed

Add support for SPI Parameters #378

mp911de opened this issue Jan 6, 2021 · 0 comments
Labels
type: enhancement A general enhancement type: spec A change mandated by the specification
Milestone

Comments

@mp911de
Copy link
Collaborator

mp911de commented Jan 6, 2021

See r2dbc/r2dbc-spi#160.

We should extend our PostgresqlObjectId to implement Type so that it can be used together with Parameters.in(…) (e.g. Parameters.in(PostgresqlObjectId.CIRCLE)) and we should propagate the desired data type to the encoded value. We also should allow dynamic type look up:

PostgresTypes types = PostgresTypes.from(this.connection);
PostgresTypes.PostgresType type = types.lookupType("my_enum").block();

…
Parameters.in(type, "HELLO")

so that runtime types can be used with our codecs.

@mp911de mp911de added the type: enhancement A general enhancement label Jan 6, 2021
@mp911de mp911de added this to the 0.9.0.M1 milestone Jan 6, 2021
mp911de added a commit that referenced this issue Jan 6, 2021
Switch argument ordering for format and type arguments

[#378]
mp911de added a commit that referenced this issue Jan 6, 2021
mp911de added a commit that referenced this issue Jan 6, 2021
mp911de added a commit that referenced this issue Jan 6, 2021
@mp911de mp911de closed this as completed in b369ae8 Jan 6, 2021
mp911de added a commit that referenced this issue Jan 6, 2021
@mp911de mp911de added the type: spec A change mandated by the specification label Jan 6, 2021
mp911de added a commit that referenced this issue Feb 18, 2021
Use correct parameter type when assuming a specific Postgres OID.

[#378]
mp911de added a commit that referenced this issue Feb 18, 2021
Use correct parameter type when assuming a specific Postgres OID.

[#378]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement type: spec A change mandated by the specification
Projects
None yet
Development

No branches or pull requests

1 participant