sqlite: fix detection of INT and CHAR types

This commit is contained in:
Ryan Leckey 2020-03-17 21:34:01 -07:00
parent 1da6feac56
commit b04f2cbd4d

View file

@ -161,8 +161,8 @@ impl Executor for SqliteConnection {
"clob" | "text" => SqliteType::Text,
"blob" => SqliteType::Blob,
"real" | "double" | "double precision" | "float" => SqliteType::Float,
_ if decl.contains("int") => SqliteType::Integer,
_ if decl.contains("char") => SqliteType::Text,
decl @ _ if decl.contains("int") => SqliteType::Integer,
decl @ _ if decl.contains("char") => SqliteType::Text,
_ => SqliteType::Null,
},
};