Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed null handling in Value expression #3850

Closed
wants to merge 1 commit into from

Conversation

jarshwah
Copy link
Member

@jarshwah jarshwah commented Jan 7, 2015

In some rare cases, Oracle is unable to convert Value(None) into the correct NULL type, so we do it explicitly. #3825 has hit this corner case and has tests that fail without this change. Better to add this separately.

@@ -483,6 +483,8 @@ def __init__(self, value, output_field=None):
self.value = value

def as_sql(self, compiler, connection):
if self.value is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment to explain the Oracle corner case? It would be good to know it without using git blame :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea. Done.

@timgraham
Copy link
Member

merged in 8713ea7, thanks!

@timgraham timgraham closed this Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants