Skip to content

Commit

Permalink
Don't use alias for having
Browse files Browse the repository at this point in the history
  • Loading branch information
sbelak committed Jun 14, 2018
1 parent 8a7fb44 commit f6bc5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metabase/automagic_dashboards/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@
[:or [:not= :special_type "type/PK"]
[:= :special_type nil]]]
:group-by [:table_id]
:having [:= :count 1]}))
:having [:= :%count.* 1]}))
(into #{} (map :table_id)))
link-table? (->> (db/query {:select [:table_id [:%count.* "count"]]
:from [:metabase_field]
Expand Down

0 comments on commit f6bc5cc

Please sign in to comment.