convergence icon indicating copy to clipboard operation
convergence copied to clipboard

Implement parameter binding in extended query flow

Open returnString opened this issue 4 years ago • 0 comments

Postgres' extended query flow allows clients to present a statement for parsing that contains placeholder vars ($1, $2, ...$n) and later fill in these vars at the bind phase. However, sqlparser doesn't currently support placeholders (see ballista-compute/sqlparser-rs#145).

Once the parser supports this, we should:

  • Pass the relevant data from the stream to ClientMessage::Bind (this is presently read, but immediately discarded)
  • Update the portal interface to accept param bindings
  • Fill out a proper ParameterDescription in response to prepared statement describe requests

returnString avatar Apr 02 '21 19:04 returnString