Ticket #1412: ado_mssql.diff
File ado_mssql.diff, 907 bytes (added by , 19 years ago) |
---|
-
django/core/db/backends/ado_mssql.py
27 27 class Connection(Database.Connection): 28 28 def cursor(self): 29 29 return Cursor(self) 30 31 # Patch adodbapi to use our connection. It's patched two places because 32 # adodbapi.__init__ promotes adodbapi.adodbapi.Connection to package scope 30 33 Database.Connection = Connection 34 Database.adodbapi.Connection = Connection 31 35 32 36 origCVtoP = Database.convertVariantToPython 33 37 def variantToPython(variant, adType): … … 43 47 return int(res) # If float but int, then int. 44 48 return res 45 49 Database.convertVariantToPython = variantToPython 50 Database.adodbapi.convertVariantToPython = variantToPython 46 51 47 52 class DatabaseWrapper: 48 53 def __init__(self):