mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-30 05:14:23 +01:00
sqlite3-parser: separate boxed SelectInner struct
This commit is contained in:
@@ -305,7 +305,10 @@ impl OneSelect {
|
||||
/// Like `sqlite3_column_count` but more limited
|
||||
pub fn column_count(&self) -> ColumnCount {
|
||||
match self {
|
||||
Self::Select { columns, .. } => column_count(columns),
|
||||
Self::Select(select) => {
|
||||
let SelectInner { columns, .. } = &**select;
|
||||
column_count(columns)
|
||||
}
|
||||
Self::Values(values) => {
|
||||
assert!(!values.is_empty()); // TODO Validate
|
||||
ColumnCount::Fixed(values[0].len())
|
||||
|
||||
Reference in New Issue
Block a user