eudoxia0 / crane

An ORM for Common Lisp.
http://eudoxia.me/crane/
201 stars 19 forks source link

Can't use filter to query the database #13

Closed EuAndreh closed 9 years ago

EuAndreh commented 10 years ago

After creating a test table and an instance of the table, I'm unable to use filter to query the table:

(deftable test ()
  (field :type string))

(create 'test :field "testing")

(filter 'test :field "testing")

It says that I didn't define an inflate method:

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION CRANE.INFLATE-DEFLATE:INFLATE (9)>

Using (query (select ...)) works perfectly. Shouldn't filter return the same result as query?

eudoxia0 commented 10 years ago

The reason this happens is because the proper type is text, not string. I'll write an alias.