From dd401c57f3945f3eec03732ec08328087ab31fa6 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sat, 21 Oct 2017 21:06:35 +0200 Subject: [PATCH] Fix a latent bug discovered in local testing with CCL. It turns out that when using *print-pretty* in CCL we then have CL reader references in the output, such as in the following example: QUERY: comment on table mysql.base64 is $#1=DXIDC_EMLAQ$Test decoding base64 documents$#1#$ Of course that's wrong, so prevent this from happening by forcing *print-pretty* to nil in a top-level function. We still turn this on in the monitor thread when printing error messages as those might contain recursive data structures. --- src/api.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api.lisp b/src/api.lisp index 6edbb08..9c75f67 100644 --- a/src/api.lisp +++ b/src/api.lisp @@ -152,7 +152,8 @@ Parameters here are meant to be already parsed, see parse-cli-optargs." then run, or a commands string that is then parsed and each command run." (with-monitor (:start-logger start-logger) - (let* ((funcs + (let* ((*print-circle* nil) + (funcs (typecase source (function (list source))