Hi Frank,
about to bind S-SQL::CH to NIL, which is not of type CHARACTER. [Condition of type TYPE-ERROR]
This seems related to the (loop :for ch :of-type character :across str :do ...) in to-sql-name. Could it be that your ACL is a little old? I've been developing on ACL 8.0 and 8.1 lately, and never had a similar problem.
Best, Marijn