Re: CLSQL-SYS::VIEW-DATABASE

Patrick May <[email protected]>
Newsgroups gmane.lisp.clsql.general
Message-ID <[email protected]>
On Mar 26, 2010, at 3:06 PM, Nathan Bird wrote:
> 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.

	This is with Clozure.  You are correct, switching to 5.0.5 did the trick.

Thanks,

Patrick

_______________________________________________
CLSQL mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/clsql
smime.p7s (application/pkcs7-signature, 2.4 KB) - not displayed
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.