about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMashiro <moezhx@outlook.com>2022-08-18 05:07:12 +0800
committerGitHub <noreply@github.com>2022-08-17 22:07:12 +0100
commit656ac99ef04464b37d152b09f25facb8fd76c190 (patch)
treec4cc688c0192c094011893b1851246cdd7d5c0e3
parent461239db5d87ac584b07b394f894384853e875af (diff)
Fix ambiguous column names in `tootctl search deploy` (#18993)
-rw-r--r--app/lib/importer/statuses_index_importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/importer/statuses_index_importer.rb b/app/lib/importer/statuses_index_importer.rb
index 7c6532560..5b5153d5c 100644
--- a/app/lib/importer/statuses_index_importer.rb
+++ b/app/lib/importer/statuses_index_importer.rb
@@ -84,6 +84,6 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter
   end
 
   def local_statuses_scope
-    Status.local.select('id, coalesce(reblog_of_id, id) as status_id')
+    Status.local.select('"statuses"."id", COALESCE("statuses"."reblog_of_id", "statuses"."id") AS status_id')
   end
 end