Skip to content

Commit

Permalink
Some more functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rongcuid committed Jul 18, 2022
1 parent cfe6de7 commit 29fd539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlx-core/src/sqlite/connection/explain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ pub(super) fn explain(
//assume that AGG_FINAL will be called
let p4 = from_utf8(p4).map_err(Error::protocol)?;

if p4.starts_with("count(") || p4.starts_with("row_number(") {
if p4.starts_with("count(") || p4.starts_with("row_number(") || p4.starts_with("rank(") || p4.starts_with("dense_rank(") || p4.starts_with("ntile("){
// count(_) -> INTEGER
state.r.insert(
p3,
Expand All @@ -625,7 +625,7 @@ pub(super) fn explain(
OP_AGG_FINAL => {
let p4 = from_utf8(p4).map_err(Error::protocol)?;

if p4.starts_with("count(") || p4.starts_with("row_number(") {
if p4.starts_with("count(") || p4.starts_with("row_number(") || p4.starts_with("rank(") || p4.starts_with("dense_rank(") || p4.starts_with("ntile(") {
// count(_) -> INTEGER
state.r.insert(
p1,
Expand Down

0 comments on commit 29fd539

Please sign in to comment.