On Monday 15 August 2005 04:10, Adi J. Sieker wrote:

> I  worked a little bit on it this morning in the train.
> cur.description is not of type list when the result set is empty.

 That's not good!

> When I try add the method massageDescription to dbSQLite
> and do this:
>     if c.description == None: c.description = []
>
> I get a read-only attribute exception. So I'm a little
> bit at a loss on where to go from here.

 Me too. I suppose we could work around it by using something other than the 
direct cursor property (such as a custom Dabo property), but that would take 
a bit of reworking of the whole db module. Paul, any ideas?

> Also how to best handle this situation or is it even needed?
>  From the pysqlite documentation:
> 1. Python Database API 2.0 Compliance
> 1.1 Incompatibilities
>
> No type information in cursor.description

 Not too critical. We currently only use the field names, since the type 
descriptions are a series of codes instead of direct type info. But it is odd 
that it doesn't return an empty list in the description when there is no 
data.
-- 

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to