mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-06-02 06:18:07 +02:00
🐛 Correct the FTS target table branch of indexNode https://github.com/siyuan-note/siyuan/issues/17536 (#17557)
This commit is contained in:
+2
-2
@@ -127,13 +127,13 @@ func indexNode(tx *sql.Tx, id string) (err error) {
|
||||
return
|
||||
}
|
||||
if caseSensitive {
|
||||
stmt = "UPDATE blocks_fts_case_insensitive SET content = ? WHERE id = ?"
|
||||
stmt = "UPDATE blocks_fts SET content = ? WHERE id = ?"
|
||||
if err = execStmtTx(tx, stmt, content, id); err != nil {
|
||||
tx.Rollback()
|
||||
return
|
||||
}
|
||||
} else {
|
||||
stmt = "UPDATE blocks_fts SET content = ? WHERE id = ?"
|
||||
stmt = "UPDATE blocks_fts_case_insensitive SET content = ? WHERE id = ?"
|
||||
if err = execStmtTx(tx, stmt, content, id); err != nil {
|
||||
tx.Rollback()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user