[DB-SIG] adodbapi

Henrik Ekelund henrik.ekelund@vpd.se
Thu, 6 Mar 2003 09:30:55 +0100


Thanks for the patch,
yes adodbapi is alive. A new version is coming very soon with improvements
in verious areas.

GetRows will be included in the new version, thanks to Jim Abrams.

/Henrik Ekelund


> -----Original Message-----
> From: William Dode [mailto:wilk-ml@flibuste.net]
> Sent: den 5 mars 2003 17:51
> To: db-sig@python.org
> Subject: [DB-SIG] adodbapi
> 
> 
> hi,
> 
> Is the project still alive ?
> I submit a patch to correct the error when msaccess return tuple for
> currency instead of float.
> 
> I also plan to submit a patch to improve speed with getrows like
> kevin. Maybe somebody did it ?
> 
> -- --- ado/adodbapi/adodbapi.py    2003-03-05 17:20:18.000000000 +0100
> +++ adodbapi.py 2003-03-05 17:21:34.000000000 +0100
> @@ -22,6 +22,7 @@
>  import string
>  import exceptions
>  import win32com.client
> +import types
>  
>  import mx.DateTime as datelibrary
>  # This module uses the following functions of the datelibrary:
> @@ -599,6 +600,8 @@
>              return datelibrary.DateTimeFromCOMDate(variant)
>      if type_code == NUMBER:
>          try:
> +            if type(variant) == types.TupleType: # msaccess currency
> +                return float(variant[1]/10000.0)
>              return float(variant)
>          except ValueError:
>              #A comma is a dot in Sweden, the regional 
> settings are used in the variant
> 
> 
> William Dode - http://flibuste.net
> 
> _______________________________________________
> DB-SIG maillist  -  DB-SIG@python.org
> http://mail.python.org/mailman/listinfo/db-sig
> 


**********************************************************************
This email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************