X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Futils.lisp;h=4ecf757e0bcf2a93c096d0e9ed78f15144a9a7bb;hb=6d643c3749b77b6e6207871f0cf40f135094f457;hp=e6176cbb0a18f110620931938172e74b91472d3b;hpb=e567409d9fff3f7231c2a0bb69b345e19de2b246;p=clsql.git diff --git a/sql/utils.lisp b/sql/utils.lisp index e6176cb..4ecf757 100644 --- a/sql/utils.lisp +++ b/sql/utils.lisp @@ -52,10 +52,9 @@ (defun sql-escape (identifier) "Change hyphens to underscores, ensure string" - (let ((unescaped (etypecase identifier - (symbol (symbol-name identifier)) - (string identifier)))) - (substitute #\_ #\- unescaped))) + (etypecase identifier + (symbol (substitute #\_ #\- (symbol-name identifier))) + (string identifier))) (defmacro without-interrupts (&body body) #+allegro `(mp:without-scheduling ,@body)