File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -235,12 +235,13 @@ def _convert_named_params_with_casting(
235235 f"Parameters dict: { parameters !r} "
236236 )
237237
238- raise ValueError (
239- f"Missing parameters in query: { missing_params } . "
240- f"Query contains parameters { found_params } "
241- f"but parameters dict only has { available_params } . "
242- f "This may indicate a parameter processing issue in the execution pipeline ."
238+ # Instead of raising an error, return the original query and parameters
239+ # This prevents partial conversion which can cause SQL syntax errors
240+ logger . warning (
241+ "Returning original query due to missing parameters . "
242+ "This may indicate a parameter processing issue."
243243 )
244+ return querystring , parameters
244245
245246 # Convert the query string by replacing each parameter with its positional equivalent
246247 converted_query = querystring
You can’t perform that action at this time.
0 commit comments