r10284: * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
authorKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 27 Jan 2005 05:56:00 +0000 (05:56 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 27 Jan 2005 05:56:00 +0000 (05:56 +0000)
ChangeLog
sql/utils.lisp

index 47fc73d96e0aa61415ceb5e7def8a7b7b4c6b6fd..6773d1fc7e9c8852a2d3f740895cfb7a707ebced 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
        * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
        suggestion.
+       * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
 
 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
        * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
index 0e40b1de6a6312cf7cca7183c5164aee402f0716..ef4f990e456afe391266e97f42ebbc14cccc19fe 100644 (file)
 
 (defun sql-escape (identifier)
   "Change hyphens to underscores, ensure string"
-  (let* ((unescaped (etypecase identifier
-                      (symbol (symbol-name identifier))
-                      (string identifier)))
-         (escaped (make-string (length unescaped))))
+  (let ((unescaped (etypecase identifier
+                    (symbol (symbol-name identifier))
+                    (string identifier))))
     (substitute #\_ #\- unescaped)))
 
 (defmacro without-interrupts (&body body)