#1261: [patch] Firebird database backend
-----------------------------------------+----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Database
wrapper
Version: | Resolution:
Keywords: firebird database backend | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 1
-----------------------------------------+----------------------------------
Comment (by [EMAIL PROTECTED]):
Sidney,
You absolutely right about, i've changed the new patch to reflect that.
The new patch works with the 0.96 release, i could remove all "if
settings.DATABASE_ENGINE == 'firebird'" if the oracle branch was used, but
right now the trunk is not recommendable according to django devs.
The test suite reports 1 failure and 1 error:
{{{
======================================================================
ERROR: Doctest: regressiontests.forms.tests
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/elias/Projectos/FirebirdDjangoSupport/test/django/test/doctest.py",
line 2151, in runTest
test, out=new.write, clear_globs=False)
File
"/home/elias/Projectos/FirebirdDjangoSupport/test/django/test/doctest.py",
line 1379, in run
return self.__run(test, compileflags, out)
File
"/home/elias/Projectos/FirebirdDjangoSupport/test/django/test/doctest.py",
line 1292, in __run
self.report_failure(out, test, example, got)
File
"/home/elias/Projectos/FirebirdDjangoSupport/test/django/test/doctest.py",
line 1160, in report_failure
self._checker.output_difference(example, got, self.optionflags))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 245:
ordinal not in range(128)
======================================================================
FAIL: test_templates (regressiontests.templates.tests.Templates)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/elias/Projectos/FirebirdDjangoSupport/test/tests/regressiontests/templates/tests.py",
line 754, in test_templates
self.assertEqual(failures, [], '\n'.join(failures))
AssertionError: Template test (TEMPLATE_STRING_IF_INVALID=''): basic-
syntax37 -- FAILED. Got <type 'exceptions.UnicodeEncodeError'>, exception:
'latin-1' codec can't encode characters in position 0-7: ordinal not in
range(256)
Template test (TEMPLATE_STRING_IF_INVALID='INVALID'): basic-syntax37 --
FAILED. Got <type 'exceptions.UnicodeEncodeError'>, exception: 'latin-1'
codec can't encode characters in position 0-7: ordinal not in range(256)
----------------------------------------------------------------------
Ran 103 tests in 58.960s
FAILED (failures=1, errors=1)
}}}
But don't know where too look to resolve these.
Another thing, TextField/BLOB are not searchable in Firebird 1.5 and 2.0.
If we use "CONTAINING" the column index is not used and we loose case
sensitive. I've tried to indicate the field type so we could do a special
search for TextField's, but i'll wait for the query.py refactoring.
In Firebird 2.1 BLOB's TEXT will work like VARCHARS, but it's still in
alpha testing.
If anyone has any suggestion about the test errors and textfield's, please
help out.
--
Ticket URL: <http://code.djangoproject.com/ticket/1261#comment:12>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---