File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -350,14 +350,14 @@ def init(cursor: duckdb.DuckDBPyConnection) -> None:
350350
351351 if self .connector_config :
352352 option_names = list (self .connector_config )
353- in_part = "," .join ([ "?" for _ in range (len (option_names ))] )
353+ in_part = "," .join ("?" for _ in range (len (option_names )))
354354
355355 cursor .execute (
356356 f"SELECT name, value FROM duckdb_settings() WHERE name IN ({ in_part } )" ,
357357 option_names ,
358358 )
359359
360- existing_values = {r [ 0 ]: r [ 1 ] for r in cursor .fetchall ()}
360+ existing_values = {field : setting for field , setting in cursor .fetchall ()}
361361
362362 # only set connector_config items if the values differ from what is already set
363363 # trying to set options like 'temp_directory' even to the same value can throw errors like:
You can’t perform that action at this time.
0 commit comments