Skip to content

Commit

Permalink
correcting SlaveDatabaseWrapper cursor to properly handle db encodings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrandis authored and mmalone committed Nov 25, 2009
1 parent 9cacae8 commit 124f5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _cursor(self, settings):
'charset': 'utf8',
'use_unicode': True,
}
kwargs = pick_random_slave(settings.SLAVE_DATABASES)
kwargs.update(pick_random_slave(settings.SLAVE_DATABASES))
self.connection = Database.connect(**kwargs)
self.connection.encoders[SafeUnicode] = self.connection.encoders[unicode]
self.connection.encoders[SafeString] = self.connection.encoders[str]
Expand Down

0 comments on commit 124f5b9

Please sign in to comment.