[postmodern-devel] Error with the :PLIST result style

Nicolas Martyanoff khaelin at gmail.com
Sat Jul 31 15:06:19 UTC 2010


Hi,

I tried using the :PLIST result style with the following query:

(postmodern:query (:select '* :from 'accounts) :plist)

Infortunately, it doesn't work because this form expands to:

(T
 (CL-POSTGRES:EXEC-QUERY POSTMODERN:*DATABASE*
                         (S-SQL:SQL (:SELECT '* :FROM 'ACCOUNTS))
                         'POSTMODERN::SYMBOL-PLIST-ROW-READER))

Where T isn't a function.

Using other result styles works as intended.


The source of the problem seems to be that in *RESULT-STYLES*
(postmodern/query.lisp), :PLIST and :PLISTS are respectively associated
with T and NIL, while all other result styles use SINGLE-ROW or
ALL-ROWS.

Am I doing something wrong or is this really a bug ?

Regards,

-- 
Nicolas Martyanoff
   http://codemore.org
   khaelin at gmail.com




More information about the postmodern-devel mailing list