diff --git a/src/snowflake/connector/pandas_tools.py b/src/snowflake/connector/pandas_tools.py index be77e67a7..75c508048 100644 --- a/src/snowflake/connector/pandas_tools.py +++ b/src/snowflake/connector/pandas_tools.py @@ -592,11 +592,10 @@ def drop_object(name: str, object_type: str) -> None: f"{' BINARY_AS_TEXT=FALSE' if auto_create_table or overwrite or infer_schema else ''}" f"{sql_use_logical_type}" f") " - f"PURGE=TRUE ON_ERROR=?" + f"PURGE=TRUE ON_ERROR='{on_error}'" ) params = ( target_table_location, - on_error, ) logger.debug(f"copying into with '{copy_into_sql}'. params: %s", params) copy_results = cursor.execute(