meli: fix reindex of previously indexed account with sqlite3 backend
Reported-by: iooioio <meli@iooioio.xyz> Co-authored-by: iooioio <meli@iooioio.xyz> Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
This commit is contained in:
parent
a389772d96
commit
18ae584836
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ impl AccountCache {
|
|||
let tx = conn
|
||||
.transaction_with_behavior(melib::rusqlite::TransactionBehavior::Immediate)?;
|
||||
tx.execute(
|
||||
"INSERT OR REPLACE INTO accounts (name) VALUES (?1)",
|
||||
"INSERT OR IGNORE INTO accounts (name) VALUES (?1)",
|
||||
params![acc_name.as_ref()],
|
||||
)
|
||||
.chain_err_summary(|| "Failed to update index:")?;
|
||||
|
|
Loading…
Add table
Reference in a new issue