mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
GROUP BY and ORDER BY mostly work
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user