mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Ignore dcl_type case
This commit is contained in:
parent
19d0887179
commit
e65fd1e8e4
@ -165,10 +165,10 @@ mod test {
|
|||||||
column_names.as_slice(),
|
column_names.as_slice(),
|
||||||
&["type", "name", "tbl_name", "rootpage", "sql"]
|
&["type", "name", "tbl_name", "rootpage", "sql"]
|
||||||
);
|
);
|
||||||
let column_types: Vec<Option<&str>> = columns.iter().map(Column::decl_type).collect();
|
let column_types: Vec<Option<String>> = columns.iter().map(|col| col.decl_type().map(str::to_lowercase)).collect();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
&column_types[..3],
|
&column_types[..3],
|
||||||
&[Some("text"), Some("text"), Some("text"),]
|
&[Some("text".to_owned()), Some("text".to_owned()), Some("text".to_owned()),]
|
||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user