File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626from sqlalchemy .exc import DatabaseError , DBAPIError
2727
2828from testgen .common .database .database_service import empty_cache , get_flavor_service
29- from testgen .common .models .connection import Connection
29+ from testgen .common .models .connection import DEFAULT_MAX_QUERY_CHARS , Connection
3030from testgen .ui .services .database_service import fetch_from_target_db
3131
3232try :
@@ -142,4 +142,4 @@ def apply_connection_defaults(connection: Connection) -> None:
142142 """Fill flavor-dependent defaults for fields the caller didn't supply."""
143143 if connection .max_query_chars is None :
144144 # Salesforce Data 360's Hyper engine has a lower expression-depth limit
145- connection .max_query_chars = 15000 if connection .sql_flavor_code == "salesforce_data360" else 20000
145+ connection .max_query_chars = 15000 if connection .sql_flavor_code == "salesforce_data360" else DEFAULT_MAX_QUERY_CHARS
You can’t perform that action at this time.
0 commit comments