Skip to content

Commit e5ec944

Browse files
committed
Added new type support from psql
1 parent d8cca4b commit e5ec944

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/value_converter/to_python.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ fn postgres_bytes_to_py(
187187
.into_py_any(py)?),
188188
// // ---------- String Types ----------
189189
// // Convert TEXT and VARCHAR type into String, then into str
190-
Type::TEXT | Type::VARCHAR | Type::XML => Ok(composite_field_postgres_to_py::<
191-
Option<String>,
192-
>(type_, buf, is_simple)?
193-
.into_py_any(py)?),
190+
Type::TEXT | Type::VARCHAR | Type::XML | Type::NAME => Ok(
191+
composite_field_postgres_to_py::<Option<String>>(type_, buf, is_simple)?
192+
.into_py_any(py)?,
193+
),
194194
// ---------- Boolean Types ----------
195195
// Convert BOOL type into bool
196196
Type::BOOL => Ok(

0 commit comments

Comments
 (0)