mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-28 03:06:29 +00:00
Less dirty servers & fix python
This commit is contained in:
@@ -55,6 +55,7 @@ impl Client {
|
||||
// TODO: perform actual auth.
|
||||
// TODO: record startup parameters client sends over.
|
||||
auth_ok(&mut stream).await?;
|
||||
server_parameters(&mut stream).await?;
|
||||
ready_for_query(&mut stream).await?;
|
||||
|
||||
let (read, write) = stream.into_split();
|
||||
@@ -135,6 +136,10 @@ impl Client {
|
||||
|
||||
'X' => {
|
||||
// Client closing
|
||||
if server.in_transaction() {
|
||||
server.query("ROLLBACK").await?;
|
||||
}
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user