You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(django-google-spanner): unconditionally quote all identifiers in quote_name #19072
Once prerequisite schema.py fixes are in place, DatabaseOperations.quote_name() should unconditionally quote all identifiers instead of leaving unreserved regular ASCII identifiers unquoted (so reserved-keyword tracking via SPANNER_RESERVED_KEYWORDS is no longer needed).
Tasks
Fix OpenTelemetry model_name span attributes in django_spanner/schema.py to pass unquoted model._meta.db_table instead of calling self.quote_name(...).
It removes the regular identifier fast path in quote_name() so all identifiers are quoted, and drops the SPANNER_RESERVED_KEYWORDS import and _REGULAR_IDENTIFIER_RE. The model_name span attributes in schema.py already pass the unquoted db_table, so no change was needed there.
Unit and mockserver tests pass on Django 5.2 and 6.0 (223 tests), with the updated expectations failing on the previous implementation.
Activity
fix(django-google-spanner): use unquoted table names for OpenTelemetr…
fix(django-google-spanner): use unquoted table names for OpenTelemetr…
PCTEJA commentedon Nov 26, 2026
I opened #19228 for this.
It removes the regular identifier fast path in quote_name() so all identifiers are quoted, and drops the SPANNER_RESERVED_KEYWORDS import and _REGULAR_IDENTIFIER_RE. The model_name span attributes in schema.py already pass the unquoted db_table, so no change was needed there.
Unit and mockserver tests pass on Django 5.2 and 6.0 (223 tests), with the updated expectations failing on the previous implementation.
PCTEJA commentedon Nov 26, 2026
@olavloite, could you please review #19228 when you are free? Thank you!