X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Futils.lisp;h=362d16c178529ae67659996c181bbe5f2e4aac73;hp=a23a820ff0231b108c92c526da089ab1e4743c01;hb=d9f41af62750c622945bb17b622a39689ee5b840;hpb=e15b72fefebeee46a83d357db2813031edcc6fbd diff --git a/sql/utils.lisp b/sql/utils.lisp index a23a820..362d16c 100644 --- a/sql/utils.lisp +++ b/sql/utils.lisp @@ -56,7 +56,9 @@ (symbol (symbol-name identifier)) (string identifier))) (escaped (make-string (length unescaped)))) - (dotimes (i (length unescaped)) + (substitute #\_ #\- unescaped))) + +(dotimes (i (length unescaped)) (setf (char escaped i) (cond ((equal (char unescaped i) #\-) #\_) @@ -66,11 +68,12 @@ escaped)) (defmacro without-interrupts (&body body) - #+lispworks `(mp:without-preemption ,@body) #+allegro `(mp:without-scheduling ,@body) + #+clisp `(progn ,@body) #+cmu `(system:without-interrupts ,@body) - #+sbcl `(sb-sys::without-interrupts ,@body) - #+openmcl `(ccl:without-interrupts ,@body)) + #+lispworks `(mp:without-preemption ,@body) + #+openmcl `(ccl:without-interrupts ,@body) + #+sbcl `(sb-sys::without-interrupts ,@body)) (defun make-process-lock (name) #+allegro (mp:make-process-lock :name name)