Re: update-instance-from-records

Igor Plekhov <[email protected]>
Newsgroups gmane.lisp.clsql.devel
Message-ID <20050809054957.GW4802@tcp>
On Mon, 08 Aug, 2005 at 23:34:31 -0600, Kevin Rosenberg 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).
> 
> 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. 

It doesn't work either.  And in the postgres' logs records appear
like this:
Aug  9 14:15:40 tcp postgres[26930]: [25-1] LOG:  statement: SELECT aa.name,aa.id FROM aa WHERE aa.id = 1

So update-instance-from-records takes a database object from
the *default-database* correctly.


-- 
Registered Linux User #124759
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.