Skip to content

Commit

Permalink
&**q -> &**d
Browse files Browse the repository at this point in the history
  • Loading branch information
swlkr committed May 31, 2024
1 parent 0879dd6 commit c092040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ryde_macros/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ fn to_stmt(db_columns: &HashSet<Column>, sql_expr: SqlExpr) -> Option<Stmt> {
returning,
..
} => delete_stmt(db_columns, ident, sql, from, selection, returning, cast),
Statement::Query(q) => {
let Query { body, limit, .. } = &**q;
Statement::Query(d) => {
let Query { body, limit, .. } = &**d;
query_stmt(db_columns, ident, sql, body, limit.as_ref(), cast)
}
_ => Some(Stmt::ExecuteBatch { ident, sql }),
Expand Down

0 comments on commit c092040

Please sign in to comment.