Skip to content

Commit e97df07

Browse files
committed
Some small improvements
1 parent 9f71ff1 commit e97df07

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/driver/cursor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ impl Cursor {
5858
.await?;
5959

6060
if result.is_empty() {
61-
return Err(PyStopAsyncIteration::new_err("Error").into());
61+
return Err(PyStopAsyncIteration::new_err(
62+
"Iteration is over, no more results in cursor",
63+
)
64+
.into());
6265
};
6366

6467
Ok(PSQLDriverPyQueryResult::new(result))

src/value_converter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ pub fn postgres_to_py(
483483
}
484484
}
485485

486-
/// Convert python List of Dict type in serde `Value`.
486+
/// Convert python List of Dict type or just Dict in serde `Value`.
487487
///
488488
/// # Errors
489489
/// May return error if cannot convert Python type into Rust one.

0 commit comments

Comments
 (0)