Skip to content

Commit 2aa076b

Browse files
committed
Require the claimed driver after Dolt identity
1 parent 3b67886 commit 2aa076b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/openstatspec/sql/capabilities.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,13 @@ def effective_profile(
268268
raise UnsupportedOperationError("The active SQL server does not match the configured profile.")
269269
if configured is MYSQL and active["profile"] not in MYSQL_WIRE_PROFILES:
270270
raise UnsupportedOperationError("The active SQL server is not a claimed MySQL-wire product.")
271+
if (
272+
active["profile"] == "dolt"
273+
and make_url(database_url).drivername.lower() != "mysql+pymysql"
274+
):
275+
raise UnsupportedOperationError(
276+
"Dolt requires an explicit mysql+pymysql URL."
277+
)
271278
dolt_declaration = None
272279
if active["profile"] == "dolt":
273280
dolt_declaration = source.require_exact_match(

0 commit comments

Comments
 (0)