mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
Preserve existing behavior (#541)
This commit is contained in:
@@ -513,7 +513,7 @@ pub struct Pool {
|
|||||||
|
|
||||||
pub query_parser_max_length: Option<usize>,
|
pub query_parser_max_length: Option<usize>,
|
||||||
|
|
||||||
#[serde(default)] // False
|
#[serde(default = "Pool::query_parser_read_write_splitting")] // False
|
||||||
pub query_parser_read_write_splitting: bool,
|
pub query_parser_read_write_splitting: bool,
|
||||||
|
|
||||||
#[serde(default)] // False
|
#[serde(default)] // False
|
||||||
@@ -592,6 +592,10 @@ impl Pool {
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn query_parser_read_write_splitting() -> bool {
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
pub fn validate(&mut self) -> Result<(), Error> {
|
pub fn validate(&mut self) -> Result<(), Error> {
|
||||||
match self.default_role.as_ref() {
|
match self.default_role.as_ref() {
|
||||||
"any" => (),
|
"any" => (),
|
||||||
|
|||||||
Reference in New Issue
Block a user