diff --git a/CHANGELOG.md b/CHANGELOG.md index 05069b3dc..f55baf682 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### New Features * Added feature flag `option-more-parentheses` to have more parentheses in expressions https://github.com/SeaQL/sea-query/pull/723 +* Added feature flag `option-sqlite-exact-column-type` to only use `integer` + +### Enhancements + +* Add `from_clear` to allow emptying current from tables in select statement https://github.com/SeaQL/sea-query/pull/716 ### Breaking Changes diff --git a/Cargo.toml b/Cargo.toml index ec51cb767..619fe12ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -92,6 +92,7 @@ all-types = [ "with-mac_address", ] option-more-parentheses = [] +option-sqlite-exact-column-type = [] [[test]] name = "test-derive" diff --git a/src/backend/sqlite/table.rs b/src/backend/sqlite/table.rs index d0a10f99c..6852c5d83 100644 --- a/src/backend/sqlite/table.rs +++ b/src/backend/sqlite/table.rs @@ -144,6 +144,8 @@ impl SqliteQueryBuilder { ColumnType::Integer | ColumnType::Unsigned => "integer".into(), ColumnType::BigInteger | ColumnType::BigUnsigned => if is_auto_increment { "integer" + } else if cfg!(feature = "option-sqlite-exact-column-type") { + "integer" } else { "bigint" }