diff options
author | FChannel <> | 2021-06-06 01:52:22 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-06 01:52:22 -0700 |
commit | 8f5289cf17c66c10285e5b30904523d51fd23de9 (patch) | |
tree | b0ee1f754973745cfa49c456ba4e6a7fda495dff /database.go | |
parent | 6e67995a4f659987f6688ba6c9e2fec9c40e9cac (diff) |
sql typos
Diffstat (limited to 'database.go')
-rw-r--r-- | database.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/database.go b/database.go index 3f029b8..0898876 100644 --- a/database.go +++ b/database.go @@ -1083,13 +1083,13 @@ func TombstoneAttachmentFromDB(db *sql.DB, id string) { } func DeleteAttachmentFromDB(db *sql.DB, id string) { - var query = `delete activitystream where id in (select attachment from activitystream where id=$1)` + var query = `delete from activitystream where id in (select attachment from activitystream where id=$1)` _, err := db.Exec(query, id) CheckError(err, "error with delete attachment") - query = `delete cacheactivitystream where id in (select attachment from cacheactivitystream where id=$1)` + query = `delete from cacheactivitystream where id in (select attachment from cacheactivitystream where id=$1)` _, err = db.Exec(query, id) @@ -1113,13 +1113,13 @@ func TombstonePreviewFromDB(db *sql.DB, id string) { } func DeletePreviewFromDB(db *sql.DB, id string) { - var query = `delete activitystream where id=$1)` + var query = `delete from activitystream where id=$1` _, err := db.Exec(query, id) CheckError(err, "error with delete preview") - query = `delete cacheactivitystream where id in (select preview from cacheactivitystream where id=$1)` + query = `delete from cacheactivitystream where id in (select preview from cacheactivitystream where id=$1)` _, err = db.Exec(query, id) @@ -1149,13 +1149,13 @@ func TombstoneObjectFromDB(db *sql.DB, id string) { } func DeleteObjectFromDB(db *sql.DB, id string) { - var query = `delete activitystream where id=$1` + var query = `delete from activitystream where id=$1` _, err := db.Exec(query, id) CheckError(err, "error with delete object") - query = `delete cacheactivitystream where id=$1` + query = `delete from cacheactivitystream where id=$1` _, err = db.Exec(query, id) |