Skip to content

Commit 9210339

Browse files
committed
Report unbound Dolt capabilities as disabled
1 parent 0a7495e commit 9210339

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎src/openstatspec/sql/capabilities.py‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,16 @@ def profile_declarations(
111111
)
112112
dolt_declaration = None
113113
if active and active["profile"] == "dolt":
114-
dolt_declaration = source.require_exact_match(
115-
active_product_version=active["raw_product_version"],
116-
specification_commit=_bound_specification_commit(),
117-
)
114+
try:
115+
dolt_declaration = source.require_exact_match(
116+
active_product_version=active["raw_product_version"],
117+
specification_commit=_bound_specification_commit(),
118+
)
119+
except UnsupportedOperationError:
120+
# Capability inspection is descriptive: preserve the active Dolt
121+
# identity while reporting writes as blocked when no exact
122+
# declaration can be selected.
123+
dolt_declaration = None
118124
return {
119125
"sqlite": _profile("sqlite", SQLITE, active, source),
120126
"mysql": _profile("mysql", MYSQL, active, source),

0 commit comments

Comments
 (0)