aboutsummaryrefslogtreecommitdiff
path: root/database.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-06 01:52:22 -0700
committerFChannel <>2021-06-06 01:52:22 -0700
commit8f5289cf17c66c10285e5b30904523d51fd23de9 (patch)
treeb0ee1f754973745cfa49c456ba4e6a7fda495dff /database.go
parent6e67995a4f659987f6688ba6c9e2fec9c40e9cac (diff)
sql typos
Diffstat (limited to 'database.go')
-rw-r--r--database.go12
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)