Fork me on GitHub
#honeysql
<
2023-04-24
>
daniel.flexiana12:04:46

Hi, is there a way to use :quoted together with if exists? (sql/format (hh/drop-view [:if-exists] :aBc) {:quoted true}) ; => ["DROP VIEW IF EXISTS ABC"] (sql/format (hh/drop-view :aBc) {:quoted true}) ; => ["DROP VIEW \"aBc\""] Expected: (sql/format (hh/drop-view [:if-exists] :aBc) {:quoted true}) ; => ["DROP VIEW IF EXISTS \"aBc\""]

2
p-himik12:04:36

(sql/format (hh/drop-view :if-exists :aBc) {:quoted true})
=> ["DROP VIEW IF EXISTS \"aBc\""]

❤️ 2