Skip to content

Commit 80e2bde

Browse files
authored
Merge pull request #160 from psqlpy-python/f/added-new-type-from-psql
Added new type support from psql
2 parents d8cca4b + e5ec944 commit 80e2bde

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)