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

pgsrv: Describe prepared statement #131

Closed
2 tasks
Tracked by #101
justinrubek opened this issue Sep 28, 2022 · 2 comments
Closed
2 tasks
Tracked by #101

pgsrv: Describe prepared statement #131

justinrubek opened this issue Sep 28, 2022 · 2 comments
Labels
feat New feature or request

Comments

@justinrubek
Copy link
Contributor

justinrubek commented Sep 28, 2022

  • Describe
    • return ParameterDescription for all parameters needed by the statement
    • return a RowDescription describing the rows that will be returned during execution

In order to provide ParameterDescription we need Parse to be able to detect placeholders #122.
The RowDescription may require some level of planning to determine.

postgres docs

The Describe message (statement variant) specifies the name of an existing prepared statement (or an empty string for the unnamed prepared statement). The response is a ParameterDescription message describing the parameters needed by the statement, followed by a RowDescription message describing the rows that will be returned when the statement is eventually executed (or a NoData message if the statement will not return rows). ErrorResponse is issued if there is no such prepared statement. Note that since Bind has not yet been issued, the formats to be used for returned columns are not yet known to the backend; the format code fields in the RowDescription message will be zeroes in this case.

@justinrubek justinrubek changed the title statement pgsrv: Decribe prepared statement Sep 28, 2022
@justinrubek justinrubek changed the title pgsrv: Decribe prepared statement pgsrv: Describe prepared statement Sep 28, 2022
@RustomMS RustomMS assigned RustomMS and unassigned RustomMS Oct 7, 2022
@scsmithr scsmithr added feat New feature or request and removed enhancement labels Nov 20, 2022
@scsmithr scsmithr self-assigned this Nov 28, 2022
@scsmithr scsmithr assigned RustomMS and unassigned RustomMS and scsmithr Dec 5, 2022
@greyscaled
Copy link
Contributor

I don't quite know if this is still relevant as specified. Since we have #122 , I think we can cancel this ticket?

@greyscaled
Copy link
Contributor

Stale - can reopen later

@greyscaled greyscaled closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants