diff -r 8e2ff4057e07 django/db/backends/mysql/base.py
a
|
b
|
|
8 | 8 | |
9 | 9 | try: |
10 | 10 | import MySQLdb as Database |
| 11 | import MySQLdb.constants.CLIENT as client_const |
11 | 12 | except ImportError, e: |
12 | 13 | from django.core.exceptions import ImproperlyConfigured |
13 | 14 | raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) |
… |
… |
|
273 | 274 | kwargs['host'] = settings_dict['DATABASE_HOST'] |
274 | 275 | if settings_dict['DATABASE_PORT']: |
275 | 276 | kwargs['port'] = int(settings_dict['DATABASE_PORT']) |
| 277 | kwargs['client_flag'] = client_const.FOUND_ROWS |
276 | 278 | kwargs.update(settings_dict['DATABASE_OPTIONS']) |
277 | 279 | self.connection = Database.connect(**kwargs) |
278 | 280 | self.connection.encoders[SafeUnicode] = self.connection.encoders[unicode] |