postgres: remove PgTypeInfo::type_name()

This commit is contained in:
Ryan Leckey 2020-03-25 18:57:24 -07:00
parent 2409c2b042
commit c6db69574b

View File

@ -333,7 +333,7 @@ async fn test_describe() -> anyhow::Result<()> {
.type_info
.as_ref()
.unwrap()
.type_name(),
.to_string(),
"INT4"
);
assert_eq!(describe.result_columns[1].non_null, Some(true));
@ -342,7 +342,7 @@ async fn test_describe() -> anyhow::Result<()> {
.type_info
.as_ref()
.unwrap()
.type_name(),
.to_string(),
"TEXT"
);
assert_eq!(describe.result_columns[2].non_null, Some(false));
@ -351,7 +351,7 @@ async fn test_describe() -> anyhow::Result<()> {
.type_info
.as_ref()
.unwrap()
.type_name(),
.to_string(),
"BYTEA"
);
assert_eq!(describe.result_columns[3].non_null, None);
@ -360,7 +360,7 @@ async fn test_describe() -> anyhow::Result<()> {
.type_info
.as_ref()
.unwrap()
.type_name(),
.to_string(),
"BOOL"
);