mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 06:12:55 +00:00
chore: bump rust-postgres to 0.7.11 (#4504)
This commit is contained in:
@@ -469,7 +469,7 @@ pub async fn test_postgres_bytea(store_type: StorageType) {
|
||||
.await
|
||||
.unwrap();
|
||||
let get_row = |mess: Vec<SimpleQueryMessage>| -> String {
|
||||
match &mess[0] {
|
||||
match &mess[1] {
|
||||
SimpleQueryMessage::Row(row) => row.get(0).unwrap().to_string(),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
@@ -595,9 +595,9 @@ pub async fn test_postgres_datestyle(store_type: StorageType) {
|
||||
.expect("INSERT INTO dt_test ERROR");
|
||||
|
||||
let get_row = |mess: Vec<SimpleQueryMessage>| -> String {
|
||||
match &mess[0] {
|
||||
match &mess[1] {
|
||||
SimpleQueryMessage::Row(row) => row.get(0).unwrap().to_string(),
|
||||
_ => unreachable!(),
|
||||
_ => unreachable!("Unexpected messages: {:?}", mess),
|
||||
}
|
||||
};
|
||||
|
||||
@@ -759,7 +759,7 @@ pub async fn test_postgres_timezone(store_type: StorageType) {
|
||||
});
|
||||
|
||||
let get_row = |mess: Vec<SimpleQueryMessage>| -> String {
|
||||
match &mess[0] {
|
||||
match &mess[1] {
|
||||
SimpleQueryMessage::Row(row) => row.get(0).unwrap().to_string(),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user