django-cockroachdb icon indicating copy to clipboard operation
django-cockroachdb copied to clipboard

Unsupported comparison operator: <collatedstring{und-u-ks-level2}> = <string>

Open luna-spirito opened this issue 1 year ago • 0 comments

When a model contains a collated text field, like this:

username = models.TextField(db_collation = "und-u-ks-level2", ...)

then attempting to compare on said field causes the exception, since Django does not explicitly apply COLLATE.

luna-spirito avatar Jul 19 '24 12:07 luna-spirito