[postmodern-devel] :set arguments

Marijn Haverbeke marijnh at gmail.com
Sun Feb 6 07:59:24 UTC 2011


> (sql (:insert-into 'kupci :set (:raw (if t (sql ('ime "a"))))))

The :insert-into clause expects the arguments to :set to be a multiple
of two. You'll need to use sql-compile to do this.

    (sql-compile `(:insert-into 'kupci :set ,@(when t (list 'ime "a"))))




More information about the postmodern-devel mailing list