Re: CLSQL and Slime
Nathan Bird <[email protected]>
| Newsgroups | gmane.lisp.clsql.general |
|---|---|
| Message-ID | <[email protected]> |
On 3/30/2010 12:25 PM, Patrick May wrote: > When I evaluate this form: > > (select 'customer :where [= [id] id] :flatp t) > > in Slime, after (locally-enable-sql-reader-syntax), I get the following error: > > Unbound variable: [= > [Condition of type UNBOUND-VARIABLE] > This always means that the reader syntax is not enabled where this is being read. > The same code works from the REPL. Is it not possible to use Slime with CLSQL? Where did you use the enable-sql-reader? in the repl? The issue with those macros is that after the first enabling, the system keeps track that it is enabled and future calls don't do anything. To reset this, call disable a number of times. Alternatively, you can use FILE-ENABLE-SQL-READER-SYNTAX which forces the enable without regard to the current status-- it is named file because that's the primary use case of it (and when used at the top of the file behaves really nicely), but it is the only enable macro I ever use. This macro doesn't attempt to keep the previous state and when using it at the repl, i always just want to turn it on, and then never care about turning it off later. For a furthur[1] description of the problem see http://lists.b9.com/pipermail/clsql/attachments/20100126/c74325ca/attachment.html [1]: For a great band-- where the remaining members of the Grateful Dead are playing see http://www.archive.org/details/Furthur :-)