Skip to content

Commit bd2a129

Browse files
vistartclaude
andcommitted
fix(postgres): declare JSONB expression formatter protocol
Ensure the PostgreSQL JSONB enhanced protocol declares the public formatter implemented by its mixin so protocol conformance checks pass. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 814d1c6 commit bd2a129

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/rhosocial/activerecord/backend/impl/postgres/protocols/types/jsonb_enhanced.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class PostgresJSONBEnhancedSupport(Protocol):
3838
- Numeric infinity in JSONB: PostgreSQL 17+
3939
"""
4040

41+
def format_json_expression(self, expr):
42+
"""Format a PostgreSQL JSON expression."""
43+
...
44+
4145
def supports_json_type(self) -> bool:
4246
"""Whether JSON data type is supported.
4347

0 commit comments

Comments
 (0)