#21821: ORM lookup refactor broke Oracle tests -------------------------------------+------------------------------------- Reporter: timo | Owner: akaariai Type: Bug | Status: new Component: Database | Version: master layer (models, ORM) | Keywords: Severity: Release | Has patch: 0 blocker | Needs tests: 0 Triage Stage: Accepted | Easy pickings: 0 Needs documentation: 0 | Patch needs improvement: 0 | UI/UX: 0 | -------------------------------------+------------------------------------- Tests fail to run with the following traceback: {{{ Traceback (most recent call last): File "./runtests.py", line 384, in <module> options.failfast, args) File "./runtests.py", line 226, in django_tests test_labels or get_installed(), extra_tests=extra_tests) File "/home/tim/code/django/django/test/runner.py", line 147, in run_tests old_config = self.setup_databases() File "/home/tim/code/django/django/test/runner.py", line 109, in setup_databases return setup_databases(self.verbosity, self.interactive, **kwargs) File "/home/tim/code/django/django/test/runner.py", line 299, in setup_databases verbosity, autoclobber=not interactive) File "/home/tim/code/django/django/db/backends/creation.py", line 367, in create_test_db test_database=True) File "/home/tim/code/django/django/core/management/__init__.py", line 167, in call_command return klass.execute(*args, **defaults) File "/home/tim/code/django/django/core/management/base.py", line 291, in execute output = self.handle(*args, **options) File "/home/tim/code/django/django/core/management/commands/migrate.py", line 149, in handle emit_post_migrate_signal(created_models, self.verbosity, self.interactive, connection.alias) File "/home/tim/code/django/django/core/management/sql.py", line 244, in emit_post_migrate_signal using=db) File "/home/tim/code/django/django/dispatch/dispatcher.py", line 198, in send response = receiver(signal=self, sender=sender, **named) File "/home/tim/code/django/django/contrib/auth/management/__init__.py", line 85, in create_permissions ctype = ContentType.objects.db_manager(using).get_for_model(klass) File "/home/tim/code/django/django/contrib/contenttypes/models.py", line 49, in get_for_model defaults={'name': smart_text(opts.verbose_name_raw)}, File "/home/tim/code/django/django/db/models/manager.py", line 77, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/home/tim/code/django/django/db/models/query.py", line 416, in get_or_create return self.get(**lookup), False File "/home/tim/code/django/django/db/models/query.py", line 345, in get num = len(clone) File "/home/tim/code/django/django/db/models/query.py", line 121, in __len__ self._fetch_all() File "/home/tim/code/django/django/db/models/query.py", line 962, in _fetch_all self._result_cache = list(self.iterator()) File "/home/tim/code/django/django/db/models/query.py", line 264, in iterator for row in compiler.results_iter(): File "/home/tim/code/django/django/db/models/sql/compiler.py", line 693, in results_iter for rows in self.execute_sql(MULTI): File "/home/tim/code/django/django/db/models/sql/compiler.py", line 766, in execute_sql sql, params = self.as_sql() File "/home/tim/code/django/django/db/backends/oracle/compiler.py", line 43, in as_sql with_col_aliases=True) File "/home/tim/code/django/django/db/models/sql/compiler.py", line 107, in as_sql where, w_params = self.compile(self.query.where) File "/home/tim/code/django/django/db/models/sql/compiler.py", line 78, in compile return node.as_sql(self, self.connection) File "/home/tim/code/django/django/db/models/sql/where.py", line 105, in as_sql sql, params = qn.compile(child) File "/home/tim/code/django/django/db/models/sql/compiler.py", line 78, in compile return node.as_sql(self, self.connection) File "/home/tim/code/django/django/db/models/lookups.py", line 120, in as_sql lhs_sql = connection.ops.field_cast_sql(db_type, field_internal_type) % lhs_sql File "/home/tim/code/django/django/db/backends/oracle/base.py", line 277, in field_cast_sql if db_type and db_type.endswith('LOB'): AttributeError: 'CharField' object has no attribute 'endswith' }}}
-- Ticket URL: <https://code.djangoproject.com/ticket/21821> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/047.278759b4c77d73512a5546dfcc8f8854%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.