Fixup
This commit is contained in:
parent
29da37b4f2
commit
468cbb9baf
@ -34,8 +34,8 @@ log = { version = "^0.4" }
|
|||||||
tracing = { version = "^0.1", features = ["log"] }
|
tracing = { version = "^0.1", features = ["log"] }
|
||||||
rust_decimal = { version = "^1", optional = true }
|
rust_decimal = { version = "^1", optional = true }
|
||||||
sea-orm-macros = { version = "^0.10.0", path = "sea-orm-macros", optional = true }
|
sea-orm-macros = { version = "^0.10.0", path = "sea-orm-macros", optional = true }
|
||||||
sea-query = { version = "^0.27", features = ["thread-safe"] }
|
sea-query = { version = "^0.27", git = "https://github.com/SeaQL/sea-query", branch = "sqlite-bind-decimals", features = ["thread-safe"] }
|
||||||
sea-query-binder = { version = "^0.2", optional = true }
|
sea-query-binder = { version = "^0.2", git = "https://github.com/SeaQL/sea-query", branch = "sqlite-bind-decimals", optional = true }
|
||||||
sea-strum = { version = "^0.23", features = ["derive", "sea-orm"] }
|
sea-strum = { version = "^0.23", features = ["derive", "sea-orm"] }
|
||||||
serde = { version = "^1.0", features = ["derive"] }
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_json = { version = "^1.0", optional = true }
|
serde_json = { version = "^1.0", optional = true }
|
||||||
@ -46,10 +46,6 @@ url = "^2.2"
|
|||||||
once_cell = "1.8"
|
once_cell = "1.8"
|
||||||
thiserror = "^1"
|
thiserror = "^1"
|
||||||
|
|
||||||
[patch.crates-io]
|
|
||||||
sea-query = { git = "https://github.com/SeaQL/sea-query", branch = "sqlite-bind-decimals" }
|
|
||||||
sea-query-binder = { git = "https://github.com/SeaQL/sea-query", branch = "sqlite-bind-decimals" }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
smol = { version = "^1.2" }
|
smol = { version = "^1.2" }
|
||||||
smol-potat = { version = "^1.1" }
|
smol-potat = { version = "^1.1" }
|
||||||
|
@ -25,7 +25,7 @@ clap = { version = "^3.2", features = ["env", "derive"] }
|
|||||||
dotenvy = { version = "^0.15" }
|
dotenvy = { version = "^0.15" }
|
||||||
sea-orm = { version = "^0.10.0", path = "../", default-features = false, features = ["macros"] }
|
sea-orm = { version = "^0.10.0", path = "../", default-features = false, features = ["macros"] }
|
||||||
sea-orm-cli = { version = "^0.10.0", path = "../sea-orm-cli", default-features = false }
|
sea-orm-cli = { version = "^0.10.0", path = "../sea-orm-cli", default-features = false }
|
||||||
sea-schema = { version = "^0.9.3" }
|
sea-schema = { version = "^0.9.3", git = "https://github.com/SeaQL/sea-schema", branch = "sea-query-0.27" }
|
||||||
tracing = { version = "0.1", features = ["log"] }
|
tracing = { version = "0.1", features = ["log"] }
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ where
|
|||||||
{
|
{
|
||||||
type Selector = S;
|
type Selector = S;
|
||||||
fn paginate(self, db: &'db C, page_size: u64) -> Paginator<'db, C, S> {
|
fn paginate(self, db: &'db C, page_size: u64) -> Paginator<'db, C, S> {
|
||||||
let sql = &self.stmt.sql.trim()[7..];
|
let sql = &self.stmt.sql.trim()[6..].trim();
|
||||||
let mut query = SelectStatement::new();
|
let mut query = SelectStatement::new();
|
||||||
query.expr(if let Some(values) = self.stmt.values {
|
query.expr(if let Some(values) = self.stmt.values {
|
||||||
Expr::cust_with_values(sql, values.0)
|
Expr::cust_with_values(sql, values.0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user