Re: CLSQL-SYS::VIEW-DATABASE
Nathan Bird <[email protected]>
| Newsgroups | gmane.lisp.clsql.general |
|---|---|
| Message-ID | <[email protected]> |
On 3/26/2010 2:54 PM, Patrick May wrote: > On Mar 26, 2010, at 2:08 PM, Patrick May wrote: > >> I've defined a view class named customer but get this error when trying to create an instance: >> >> The value NIL, derived from the initform NIL, can not be used to set the value of the slot CLSQL-SYS::VIEW-DATABASE in #<CUSTOMER #x30004261E68D>, because it is not of type NIL. >> [Condition of type CCL::BAD-SLOT-TYPE-FROM-INITFORM] >> >> I am connected to a database and clsql:query forms work as expected. Any thoughts? >> > I get a similar error from (clsql:select 'customer): > > The value #<POSTGRESQL-SOCKET-DATABASE localhost/patrickdb/patrick OPEN #x3000422F55ED>, derived from the initarg :VIEW-DATABASE, can not be used to set the value of the slot CLSQL-SYS::VIEW-DATABASE in #<CUSTOMER #x3000426586CD>, because it is not of type NIL. > [Condition of type CCL::BAD-SLOT-TYPE-FROM-INITARG] > > This is with Postgresql 8.4.1 and CL-SQL 4.1.1 on OSX. What lisp is this on? You might try a newer CLSQL from http://clsql.b9.com/download.html.