[postmodern-devel] simple-date:date and "can not be converted to an SQL literal." error

Mikhail Shevchuk mikhail.shevchuk at gmail.com
Sat Oct 17 13:28:37 UTC 2009


Hello, forum!

I have a dao class that uses 'date' col-type:
   (reg_date :col-type date :initarg :date
	     :accessor user-reg-date
	     :initform (get-current-simple-date)))

here is a  (get-current-simple-date) result:
#<SIMPLE-DATE:DATE 17-10-2009>

but the following error is generated when I'm trying to instantiate the object:
Value #<SIMPLE-DATE:DATE 17-10-2009> can not be converted to an SQL literal.
   [Condition of type SIMPLE-ERROR]

Thanks in advance!

-- 
http://blog.shevchuk.org




More information about the postmodern-devel mailing list