Changes between Initial Version and Version 1 of Ticket #28767, comment 3


Ignore:
Timestamp:
Nov 5, 2017, 8:21:38 AM (7 years ago)
Author:
Tomer Chachamu

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28767, comment 3

    initial v1  
    1 I added a test in #28762 for this.
     1I added an (expected failing) test in #28762 for this.
     2
     3I think this ticket will be easier to fix after #28762 . The problem is that psycopg2 adapts the empty list to `'{}'`. We cannot simply send `ARRAY[]` because this causes `ERROR:  cannot determine type of empty array`.  However we can send `'{}'::integer[]`.
     4
     5`ArrayField.db_type()` is already implemented and returns `'integer[]'` so we can pass that value to `ArrayLiteral` and always output it into the SQL.
     6
     7This might break something else, we'll see.
Back to Top