* "William C. Halliburton" <[EMAIL PROTECTED]>
| Using uncommonsql. When slots are defined as integers I can place into
| database fine, but when I 'select' from the database the slots are
| returned as strings.
| 
| Any quick fixes?

Pulling data using field names will return strings, but
using objects "translates" the data to match the object
definition. 

(sql:def-view-class log ()
  ((id
    :accessor log-id
    :type integer
    :db-kind :key
    ....

* (sql:select 'id 'url :from 'log :where [= 'id 20000])
(("20000" "/lisp"))
* (sql:select 'log :from 'log :where [= 'id 20000])
(#<LOG {480E321D}>)
* (log-id (car *))
20000
* 




-- 
Eduardo Mu�oz          | (prog () 10 (print "Hello world!")
http://213.97.131.125/ |          20 (go 10))


Reply via email to