From: Ian B. <ia...@co...> - 2004-11-04 17:50:55
|
Josu Oyanguren wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > i don't know if this is discussed. > > I'm trying to use SelectResults.sum to get the total for a column of > floats. I think that it is trying to convert the result to an integer. I think this is a bug. Oddly, it was put in there specifically; I'm suspecting this is because SQLite is typeless, and you can almost forget that except in the case of a computed value like SUM(), where PySQLite doesn't get the metadata to figure out what the type is. I'm not sure if there's a good way to support SQLite in this case. -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |