Skip to content

Commit

Permalink
add adodbapi user-submitted patches, update change.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
vernondcole committed May 3, 2010
1 parent 975e1e6 commit d514a79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
9 changes: 8 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ However contributors are encouraged to add their own entries for their work.

Since build 214:
----------------

* Update adodbapi to version 2.3.0 -- this is includes major refactoring and
specifically adds features for django support, including the ability for the
programmer to change ado's SQL "paramstyle" at run time to select between
'qmark', 'format' and 'named' methods of passing SQL parameters.
** also, in response to user requests, adodbapi will now use client-side
cursors by default. This will make rowcount and stored procedure return
parameter values more readily available.

* Fix problem causing ASP pages to fail when reloaded.

* mapiutil.py functions GetMapiTypeName and GetPropTagName have been modified
Expand Down
11 changes: 5 additions & 6 deletions adodbapi/adodbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,9 @@ def __init__(self,adoConn):
self.adoConn=adoConn
self.paramstyle = paramstyle
self.supportsTransactions=False
for indx in range(adoConn.Properties.Count):
name = getIndexedValue(adoConn.Properties,indx).Name
if name == 'Transaction DDL':
if getIndexedValue(adoConn.Properties,indx).Value != 0: #v2.1 Albrecht
for property in adoConn.Properties: #Rod Mancisidor ( mancisidor )
if property.Name == 'Transaction DDL':
if property.Value != 0: #v2.1 Albrecht
self.supportsTransactions=True
break
self.adoConn.CursorLocation = defaultCursorLocation #v2.1 Rose
Expand Down Expand Up @@ -1185,11 +1184,11 @@ def cvtFloat(variant):
def _convertNumberWithCulture(variant, f):
try:
return f(variant)
except (ValueError,TypeError):
except (ValueError,TypeError,decimal.InvalidOperation):
try:
europeVsUS = str(variant).replace(",",".")
return f(europeVsUS)
except (ValueError,TypeError): pass
except (ValueError,TypeError,decimal.InvalidOperation): pass


def cvtInt(variant):
Expand Down

0 comments on commit d514a79

Please sign in to comment.