﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11051	Oracle backend fails null_fk regression tests	Matt Boersma	nobody	"These must be due to Oracle's nonstandard handling of NULL vs. empty string for VARCHAR columns.

{{{
C:\projects\django-trunk\tests>runtests.py --settings=testsettings.oracle null_fk
======================================================================
FAIL: Doctest: regressiontests.null_fk.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""C:\projects\django-trunk\django\test\_doctest.py"", line 2180, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.null_fk.models.__test__.API_TESTS
  File ""C:\projects\django-trunk\tests\regressiontests\null_fk\models.py"", line unknown line number, in API_TESTS

----------------------------------------------------------------------
File ""C:\projects\django-trunk\tests\regressiontests\null_fk\models.py"", line ?, in regressiontests.null_fk.models.__test__.API_TESTS
Failed example:
    [(c.id, c.comment_text, c.post) for c in comments]
Exception raised:
    Traceback (most recent call last):
      File ""C:\projects\django-trunk\django\test\_doctest.py"", line 1267, in __run
        compileflags, 1) in test.globs
      File ""<doctest regressiontests.null_fk.models.__test__.API_TESTS[10]>"", line 1, in <module>
        [(c.id, c.comment_text, c.post) for c in comments]
      File ""C:\projects\django-trunk\django\db\models\base.py"", line 325, in __repr__
        u = unicode(self)
    TypeError: coercing to Unicode: need string or buffer, NoneType found
----------------------------------------------------------------------
File ""C:\projects\django-trunk\tests\regressiontests\null_fk\models.py"", line ?, in regressiontests.null_fk.models.__test__.API_TESTS
Failed example:
    Comment.objects.select_related('post').filter(post__isnull=True)[0].post is None
Expected:
    True
Got:
    False
}}}

This happens in the pre-1.1 trunk as of revision [10723]. It hasn't caused real-world problems as far as I know, but I've entered it here as a bug so we don't lose track of it. "		closed	Database layer (models, ORM)	dev		fixed	Oracle oracle	Erin Kelly Jirka Vejrazka	Unreviewed	1	0	0	0	0	0
