sql: pg_attribute table lacks the notion of a 'default' collation #54989
Labels
A-sql-pgcatalog
A-sql-semantics
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
X-blathers-triaged
blathers was able to find an owner
Describe the problem
Unlike PostgreSQL, CockroachDB reports a column's collation, even if none is given when creating the column.
To Reproduce
Expected behavior
collation for the
name
column should be NULL rather thanen-US
.Environment:
Additional context
Django 3.2 adds support for column collations. This causes Django's
inspectdb
utility to add thedb_collation
option to allCharField
s. If this behavior can't or won't change, a workaround in thedjango-cockroachdb
adapter may be possible by modifying theCASE WHEN collname = 'default'
SQL with a retrieval of the default collation.The text was updated successfully, but these errors were encountered: