diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hub/src/spreadspace.org/sfive/s5store.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5store.go b/src/hub/src/spreadspace.org/sfive/s5store.go index 6fcb6a2..09ba684 100644 --- a/src/hub/src/spreadspace.org/sfive/s5store.go +++ b/src/hub/src/spreadspace.org/sfive/s5store.go @@ -222,7 +222,11 @@ func (s sqliteStore) insertSourceTagLinks(src sourceDb, tags []tagDb) (err error st[i].SourceId = src.Id } for i := range st { - err = s.db.Insert(&st[i]) + _, err = s.db.Exec( + "insert or ignore into "+SourceTagsTn+" values (?,?)", + st[i].SourceId, + st[i].TagId) + // err = s.db.Insert(&st[i]) if err != nil { //fmt.Printf("st\n") return |