[postmodern-devel] set

Haris fbogdanovic at xnet.hr
Mon Feb 28 20:29:24 UTC 2011


I have a query like this:

(query (sql (:update 'kupci :set
            'ime (parameter "ime")
             'prezime (parameter "prezime")
             'adresa (parameter "adresa")

and I want now for the next parameter to check if something is passed,
I tried

(:raw (if (/= (length (parameter "sobnost")) 0) (sql (:set 'sobnost 
(parameter "sobnost")))))

but it doesn't work.
Do I have to use sql-compile maybe ?





More information about the postmodern-devel mailing list