21 Oct
2004
21 Oct
'04
10:36 p.m.
On Thu, 2004-10-21 at 04:46, Gerhard Haering wrote:
WAIT!
I *can* implement something that is smarter than always converting to unicode/string, and that is, I can ask the SQLite engine which type a column has, but the limitation is it will only return its internal types:
#define SQLITE_INTEGER 1 #define SQLITE_FLOAT 2 #define SQLITE_TEXT 3 #define SQLITE_BLOB 4 #define SQLITE_NULL 5
I think that would be a neat idea as a default. Still, I want what the MySQL python binding has -- a way to provide a mapping of column names to converters. IIRC, the interface for that was a bit clunky, but it was definitely usable, so it might be better to be consistent, than better. :) -Barry