-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't automatically collapse
''
and None
for keys.
Many databases treat these differently, including MySQL, and there are legitimate cases where `''` is a valid value in key fields. This change updates both the ForeignKey class and the row cache to check the connection feature `interprets_empty_strings_as_nulls` and will collapse these two values if that's `True`, otherwise it will treat them differently.
- Loading branch information
Evan Cofsky
committed
Nov 16, 2012
1 parent
7cfb567
commit 386ef64
Showing
4 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters