change type Display implementation to not show null

This is the behavior that things like pragma table_info seem to
expect.
This commit is contained in:
Glauber Costa 2025-01-30 19:24:28 -05:00
parent 69d3fbc797
commit f1df43633a

View file

@ -367,7 +367,7 @@ pub enum Type {
impl fmt::Display for Type {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let s = match self {
Self::Null => "NULL",
Self::Null => "",
Self::Text => "TEXT",
Self::Numeric => "NUMERIC",
Self::Integer => "INTEGER",