Re: update-instance-from-records

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]>
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
Igor Plekhov wrote:
> [...]
> (defparameter *q* (make-instance 'aa :id 1))
> (clsql:update-instance-from-records *q*)
> No matching method for the generic function
> #<STANDARD-GENERIC-FUNCTION CLSQL-SYS:DATABASE-TYPE (2) {581BDB61}>, when called with arguments (NIL).
> [...]
> If *q* is selected from the database firstly then
> update-instance-from-records works without problems.
> Why doesn't it work in the first case ?

Your backtrace indicates that when you tried
update-instance-from-records after the make-instance call, the
database slot of the object was NIL. I'd recommend trying
update-instance-from-records with your database object. 

Kevin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.