1 | | I added a test in #28762 for this. |
| 1 | I added an (expected failing) test in #28762 for this. |
| 2 | |
| 3 | I 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 | |
| 7 | This might break something else, we'll see. |