[elephant-devel] strings as Class Indices ?
franks-muc at web.de
franks-muc at web.de
Sat Aug 5 23:53:50 UTC 2006
I wonder if it is possible to use strings in class indices. The example from the manual
using integers works well on my computer (windows,acl-trial,elephant,postgres).
I modified this example to use strings:
(defclass idx-four ()
((slot1 :initarg :slot1 :accessor slot1 :index t))
(:metaclass persistent-metaclass))
(defun make-idx-four (val)
(make-instance 'idx-four :slot1 val))
(with-transaction ()
(mapc #'make-idx-four '("1" "1" "1" "2" "2" "4" "5" "5" "5" "6" "10")))
(get-instances-by-value 'idx-four 'slot1 "1")
==> NIL
I suspect that nil is not the desired result since other examples provided
for elephant suggest that strings should work (see (get-instance-by-value 'user 'name name)
in http://common-lisp.net/pipermail/elephant-devel/2006-July/000477.html).
Could someone please explain where I am wrong ?
Thank you in advance!
Frank Schorr
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
More information about the elephant-devel
mailing list