#2358: [patch] MS-SQL server fixes
-----------------------------------------------------+----------------------
Reporter: Dan Hristodorescu [EMAIL PROTECTED] | Owner:
adrian
Status: new | Component:
Database wrapper
Version: SVN | Resolution:
Keywords: | Stage:
Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------------------------------------+----------------------
Comment (by [EMAIL PROTECTED]):
there are two problems in mssql_update6:
1. in django.db.backends.ado_mssql,we should import adodbapi.adodbapi
other than adodbapi,
line10:
import adodbapi as Database
should be:
import adodbapi.adodbapi as Database
otherwise,any change to attrubites of Database has no effect
2. function variantToPython should handle charset translate.
in charset other than ascii,we should translate unicode to
DEFAULT_CHARSET explicitly. As follows:
...
from django.conf import settings
...
if type(res) == unicode:
return isinstance(res,unicode) and
res.encode(settings.DEFAULT_CHARSET) or res
--
Ticket URL: <http://code.djangoproject.com/ticket/2358#comment:7>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---