mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-26 02:16:30 +00:00
Initial fix
This commit is contained in:
committed by
Andrew Jackson
parent
7d047c6c19
commit
d4e8ff27e7
@@ -346,6 +346,14 @@ where
|
|||||||
// Client is requesting to cancel a running query (plain text connection).
|
// Client is requesting to cancel a running query (plain text connection).
|
||||||
CANCEL_REQUEST_CODE => Ok((ClientConnectionType::CancelQuery, bytes)),
|
CANCEL_REQUEST_CODE => Ok((ClientConnectionType::CancelQuery, bytes)),
|
||||||
|
|
||||||
|
// Client is requesting a GSS encoded connection
|
||||||
|
GSSENC_REQUEST_CODE => {
|
||||||
|
error_response_terminal(stream, "").await?;
|
||||||
|
Err(Error::ProtocolSyncError(
|
||||||
|
"PGCat does not support GSSAPI encoding".into(),
|
||||||
|
))
|
||||||
|
},
|
||||||
|
|
||||||
// Something else, probably something is wrong and it's not our fault,
|
// Something else, probably something is wrong and it's not our fault,
|
||||||
// e.g. badly implemented Postgres client.
|
// e.g. badly implemented Postgres client.
|
||||||
_ => Err(Error::ProtocolSyncError(format!(
|
_ => Err(Error::ProtocolSyncError(format!(
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ pub const SSL_REQUEST_CODE: i32 = 80877103;
|
|||||||
// CancelRequest: the cancel request code.
|
// CancelRequest: the cancel request code.
|
||||||
pub const CANCEL_REQUEST_CODE: i32 = 80877102;
|
pub const CANCEL_REQUEST_CODE: i32 = 80877102;
|
||||||
|
|
||||||
|
// GSSENCRequest: used to indicate we wants GSS connection
|
||||||
|
pub const GSSENC_REQUEST_CODE: i32 = 80877104;
|
||||||
|
|
||||||
// AuthenticationMD5Password
|
// AuthenticationMD5Password
|
||||||
pub const MD5_ENCRYPTED_PASSWORD: i32 = 5;
|
pub const MD5_ENCRYPTED_PASSWORD: i32 = 5;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user