[DB-SIG] db-api fetchmany result type
Julián Muñoz
jmunoz@telefonica.net
Fri, 29 Mar 2002 14:10:30 +0000 (GMT)
Ok,
but this is not clearly specified in the document !!
On 29 Mar 2002, Federico Di Gregorio wrote:
> Il ven, 2002-03-29 alle 03:25, Julián Muñoz ha scritto:
> >
> > The types of the elements of the response of the fetchmany call in the
> > db-api, must correspond with the types defined in the database, or can =
all
> > be strings ?
> >
> > [('0','1')] is a correct result if botch columns are numbers, or must i=
t
> > be [ (0,1) ] ?
>
> i think it is better if db types are converted to the best-matching
> python types. strings -> strings, numbers -> numbers, date and times ->
> wrappers around DateTime objects, etc.
>
> ciao,
> federico
>
>
--
__o
_ \<_
(_)/(_)
Saludos de Julián
EA4ACL
-.-
Foro Wireless Madrid
http://opennetworks.rg3.net