This commit is contained in:
Pavan-Nambi
2025-09-10 07:35:20 +05:30
parent a04bde12a9
commit e5d3594fa2
8 changed files with 14 additions and 16 deletions

View File

@@ -438,7 +438,6 @@ impl Limbo {
}
self.reset_input();
}
fn print_query_performance_stats(&mut self, start: Instant, stats: QueryStatistics) {

View File

@@ -1309,7 +1309,7 @@ mod tests {
],
has_rowid: true,
is_strict: false,
has_autoincrement:false,
has_autoincrement: false,
unique_sets: None,
};
schema.add_btree_table(Arc::new(users_table));
@@ -1345,7 +1345,7 @@ mod tests {
],
has_rowid: true,
is_strict: false,
has_autoincrement:false,
has_autoincrement: false,
unique_sets: None,
};
schema.add_btree_table(Arc::new(sales_table));
@@ -3415,4 +3415,4 @@ mod tests {
"Row should still exist with multiplicity 1"
);
}
}
}

View File

@@ -553,7 +553,7 @@ impl Schema {
primary_key_columns: Vec::new(),
has_rowid: true,
is_strict: false,
has_autoincrement:false,
has_autoincrement: false,
unique_sets: None,
})));

View File

@@ -1322,12 +1322,11 @@ fn emit_autoincrement_logic(
extra_amount: 0,
});
let affinity_str = seq_table
.columns
.iter()
.map(|col| col.affinity().aff_mask())
.collect::<String>();
let affinity_str = seq_table
.columns
.iter()
.map(|col| col.affinity().aff_mask())
.collect::<String>();
program.emit_insn(Insn::MakeRecord {
start_reg: record_start_reg,

View File

@@ -549,7 +549,7 @@ fn parse_table(
primary_key_columns: Vec::new(),
has_rowid: true,
is_strict: false,
has_autoincrement:false,
has_autoincrement: false,
unique_sets: None,
});

View File

@@ -183,7 +183,7 @@ pub fn translate_create_table(
let index_regs =
check_automatic_pk_index_required(&body, &mut program, tbl_name.name.as_str())?;
if let Some(index_regs) = index_regs.as_ref() {
if !schema.indexes_enabled() {
if !schema.indexes_enabled() {
bail_parse_error!("Constraints UNIQUE and PRIMARY KEY (unless INTEGER PRIMARY KEY) on table are not supported without indexes");
}
for index_reg in index_regs.clone() {
@@ -194,7 +194,7 @@ pub fn translate_create_table(
});
}
}
let table = schema.get_btree_table(SQLITE_TABLEID).unwrap();
let sqlite_schema_cursor_id = program.alloc_cursor_id(CursorType::BTreeTable(table.clone()));
program.emit_insn(Insn::OpenWrite {

View File

@@ -75,7 +75,7 @@ pub fn translate_create_materialized_view(
primary_key_columns: vec![], // Materialized views use implicit rowid
has_rowid: true,
is_strict: false,
has_autoincrement:false,
has_autoincrement: false,
unique_sets: None,
});

View File

@@ -386,7 +386,7 @@ pub fn parse_schema_rows(
primary_key_columns: vec![],
has_rowid: true,
is_strict: false,
has_autoincrement:false,
has_autoincrement: false,
unique_sets: None,
})));