Changes between Initial Version and Version 2 of Ticket #20971
- Timestamp:
- Sep 9, 2013, 9:34:23 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20971
- Property Type Uncategorized → Bug
-
Ticket #20971 – Description
initial v2 2 2 3 3 E.g. 4 y.xys.all().defer(list_of_all_text_fields).annotate(Count('z__pk', distinct=True)causes "DatabaseError: ORA-00932: inconsistent datatypes: expected - got NCLOB"4 `y.xys.all().defer(list_of_all_text_fields).annotate(Count('z__pk', distinct=True)` causes "DatabaseError: ORA-00932: inconsistent datatypes: expected - got NCLOB" 5 5 6 6 This is probably(?) because the "GROUP BY" clause will contain all the deferred fields. 7 7 8 As a workaround I have to do sum(len(set(x)) for x in y.xys.all().values_list('z__pk'))8 As a workaround I have to do `sum(len(set(x)) for x in y.xys.all().values_list('z__pk'))` 9 9 Works flawlessly on PostgreSQL.