diff --git a/ryde_macros/src/db.rs b/ryde_macros/src/db.rs index 87b33e9..64bf684 100644 --- a/ryde_macros/src/db.rs +++ b/ryde_macros/src/db.rs @@ -411,8 +411,8 @@ fn to_stmt(db_columns: &HashSet, sql_expr: SqlExpr) -> Option { 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 }),