Skip to content

Commit 11563f2

Browse files
committed
Fixed problem with arrays in JSONs
Signed-off-by: chandr-andr (Kiselev Aleksandr) <chandr@chandr.net>
1 parent 8f6c0f3 commit 11563f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/value_converter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>(
810810
})
811811
}
812812

813-
/// Convert rust array to python list.
813+
/// Convert Array of `PythonDTO`s to serde `Value`.
814814
///
815815
/// It can convert multidimensional arrays.
816816
fn pythondto_array_to_serde(array: Option<Array<PythonDTO>>) -> RustPSQLDriverPyResult<Value> {
@@ -827,7 +827,7 @@ fn pythondto_array_to_serde(array: Option<Array<PythonDTO>>) -> RustPSQLDriverPy
827827
}
828828
}
829829

830-
/// Inner postgres array conversion to python list.
830+
/// Inner conversion array of `PythonDTO`s to serde `Value`.
831831
#[allow(clippy::cast_sign_loss)]
832832
fn _pythondto_array_to_serde(
833833
dimensions: &[Dimension],

0 commit comments

Comments
 (0)