[postmodern-devel] Calling a SQL func as a DAO field value
Marijn Haverbeke
marijnh at gmail.com
Tue Dec 25 20:43:17 UTC 2012
If I do
cl-user> (s-sql:sql (:now))
It produces "now()" for me.
On Tue, Dec 25, 2012 at 9:36 PM, Julien Danjou <julien at danjou.info> wrote:
> On Tue, Dec 25 2012, Marijn Haverbeke wrote:
>
>> Doesn't (:now) work?
>
> No, I get:
>
> Value (:NOW) can not be converted to an SQL literal.
>
> I've actually tried "NOW()", which is a string and seemed not valid to
> me so I just didn't try that possibility, and it seems to work… But I'm
> worring of what would happen if my field was not a timestamp but a text?
>
> --
> Julien Danjou
> ;; Free Software hacker & freelance
> ;; http://julien.danjou.info
More information about the postmodern-devel
mailing list