#20271: PostgreSQL error: No operator matches the given name and argument type(s). You might need to add explicit type casts. ----------------------------------------------+---------------------------- Reporter: arctelix@… | Owner: nobody Type: Bug | Status: new Component: Database layer (models, ORM) | Version: 1.4 Severity: Normal | Keywords: postgresql, pk Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+---------------------------- It seems this error is still around!
Traceback (most recent call last): File "/app/.heroku/src/django-tastypie/tastypie/resources.py", line 202, in wrapper response = callback(request, *args, **kwargs) File "/app/.heroku/src/django-tastypie/tastypie/resources.py", line 441, in dispatch_list return self.dispatch('list', request, **kwargs) File "/app/.heroku/src/django-tastypie/tastypie/resources.py", line 473, in dispatch response = method(request, **kwargs) File "/app/.heroku/src/django-tastypie/tastypie/resources.py", line 1244, in get_list to_be_serialized = paginator.page() File "/app/.heroku/src/django-tastypie/tastypie/paginator.py", line 186, in page count = self.get_count() File "/app/.heroku/src/django-tastypie/tastypie/paginator.py", line 118, in get_count return self.objects.count() File "/app/.heroku/python/lib/python2.7/site- packages/django/db/models/query.py", line 351, in count return self.query.get_count(using=self.db) File "/app/.heroku/python/lib/python2.7/site- packages/django/db/models/sql/query.py", line 418, in get_count number = obj.get_aggregation(using=using)[None] File "/app/.heroku/python/lib/python2.7/site- packages/django/db/models/sql/query.py", line 384, in get_aggregation result = query.get_compiler(using).execute_sql(SINGLE) File "/app/.heroku/python/lib/python2.7/site- packages/django/db/models/sql/compiler.py", line 818, in execute_sql cursor.execute(sql, params) File "/app/.heroku/python/lib/python2.7/site- packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute return self.cursor.execute(query, args) DatabaseError: operator does not exist: integer = text LINE 1: ... INNER JOIN "django_comments" ON ("pins_pin"."id" = "django_... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. -- Ticket URL: <https://code.djangoproject.com/ticket/20271> 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. For more options, visit https://groups.google.com/groups/opt_out.