chore: bump rust-postgres to 0.7.11 (#4504)

This commit is contained in:
Weny Xu
2024-08-05 12:26:46 +08:00
committed by GitHub
parent c4717abb68
commit 4c93fe6c2d
2 changed files with 13 additions and 13 deletions

View File

@@ -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!(),
}