Skip to content

Commit

Permalink
Fix 6d0d226 by converting the view-name to an SQL symbol not a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Jun 28, 2024
1 parent 6d0d226 commit 31393c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/dao/view.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
(defmethod sxql:make-statement ((statement-name (eql :drop-view)) &rest args)
(destructuring-bind (view-name &key if-exists)
args
(make-drop-view (sxql.operator:detect-and-convert view-name) :if-exists if-exists)))
(make-drop-view (typecase view-name
(sxql.sql-type:sql-symbol view-name)
(string (sxql:make-sql-symbol view-name))
(otherwise (sxql.operator:detect-and-convert view-name)))
:if-exists if-exists)))

(defmethod sxql:yield ((statement drop-view))
(sxql.sql-type:with-yield-binds
Expand Down

0 comments on commit 31393c4

Please sign in to comment.