|
13 | 13 | from .dolt_conformance import DoltConformanceSource, effective_limits as dolt_effective_limits |
14 | 14 | from .normative import catalog |
15 | 15 | from .profiles import DOLT, MYSQL, POSTGRESQL, SQLITE, MYSQL_WIRE_PROFILES, SqlProfile |
16 | | -from .profiles import profile_for_url |
| 16 | +from .profiles import validate_connection_url |
17 | 17 | from ..core import UnsupportedOperationError |
18 | 18 |
|
19 | 19 | # Release/build automation must bind this to the exact commit used to build |
@@ -256,7 +256,7 @@ def effective_profile( |
256 | 256 | ) -> tuple[SqlProfile, dict[str, Any]]: |
257 | 257 | """Resolve and enforce the profile used by import preflight.""" |
258 | 258 | source = _conformance_source(dolt_conformance_source) |
259 | | - configured = profile_for_url(database_url) |
| 259 | + configured = validate_connection_url(database_url) |
260 | 260 | active = active_connection(database_url, dolt_conformance_source=source) |
261 | 261 | if configured is not MYSQL and active["profile"] != configured.name: |
262 | 262 | raise UnsupportedOperationError("The active SQL server does not match the configured profile.") |
@@ -288,6 +288,7 @@ def effective_profile( |
288 | 288 | return replace( |
289 | 289 | configured, |
290 | 290 | name=active["profile"], |
| 291 | + identifier_limit=int(limits["identifier_limit"]["value"]), |
291 | 292 | max_source_variables=int(limits["maximum_source_variables"]), |
292 | 293 | max_text_value_bytes=int(limits["maximum_value_bytes"]), |
293 | 294 | max_row_bytes=( |
|
0 commit comments