GROUP BY and ORDER BY mostly work

This commit is contained in:
jussisaurio
2024-11-23 15:59:39 +02:00
parent 3f9e60633f
commit cc902ed25d
8 changed files with 872 additions and 1778 deletions

View File

@@ -638,7 +638,6 @@ impl ToTokens for Expr {
}
Self::Id(id) => id.to_tokens(s),
Self::Column { .. } => Ok(()),
Self::AggRef { .. } => Ok(()),
Self::InList { lhs, not, rhs } => {
lhs.to_tokens(s)?;
if *not {

View File

@@ -335,13 +335,8 @@ pub enum Expr {
table: usize,
/// the z in `x.y.z`. index of the column in the table.
column: usize,
/// is the column a primary key
is_primary_key: bool,
},
/// AggRef is a reference to a computed aggregate
AggRef {
/// index of the aggregate in the aggregates vector parsed from the query
index: usize,
/// is the column a rowid alias
is_rowid_alias: bool,
},
/// `IN`
InList {