Skip to content

Commit fc76a62

Browse files
committed
Don't forget to do protocol negotiation
1 parent 6c5f782 commit fc76a62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/pg/src/pg_server.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use futures::{stream, Sink};
99
use futures::{SinkExt, Stream};
1010
use http::StatusCode;
1111
use pgwire::api::auth::{
12-
finish_authentication, save_startup_parameters_to_metadata, DefaultServerParameterProvider, LoginInfo,
13-
StartupHandler,
12+
finish_authentication, protocol_negotiation, save_startup_parameters_to_metadata, DefaultServerParameterProvider,
13+
LoginInfo, StartupHandler,
1414
};
1515
use pgwire::api::portal::Format;
1616
use pgwire::api::query::SimpleQueryHandler;
@@ -217,6 +217,7 @@ impl<T: Sync + Send + ControlStateReadAccess + ControlStateWriteAccess + NodeDel
217217
{
218218
match message {
219219
PgWireFrontendMessage::Startup(ref startup) => {
220+
protocol_negotiation(client, startup).await?;
220221
save_startup_parameters_to_metadata(client, startup);
221222
client.set_state(PgWireConnectionState::AuthenticationInProgress);
222223

0 commit comments

Comments
 (0)