Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix add interval honeysql form (#65091)

Riley Thompson4a23fc0ee0ac
diff --git a/src/metabase/driver/sql/query_processor.clj b/src/metabase/driver/sql/query_processor.clj
index e0734b19d75..74b986648fd 100644
--- a/src/metabase/driver/sql/query_processor.clj
+++ b/src/metabase/driver/sql/query_processor.clj
@@ -433,9 +433,9 @@
`amount` is usually an integer, but can be floating-point for units like seconds.
This multimethod can be extended by drivers in their respective namespaces."
- {:added "0.34.2" :arglists '([db-type hsql-form amount unit])}
- (fn [db-type _hsql-form _amount _unit]
- (keyword db-type)))
+ {:added "0.34.2" :arglists '([driver hsql-form amount unit])}
+ driver/dispatch-on-initialized-driver
+ :hierarchy #'driver/hierarchy)
(mu/defn adjust-start-of-week
"Truncate to the day the week starts on.