mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
sqlite: fix detection of INT and CHAR types
This commit is contained in:
parent
1da6feac56
commit
b04f2cbd4d
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue