Skip to content

Commit

Permalink
executemany for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Nov 15, 2024
1 parent 4be49b1 commit 52493f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandaserver/taskbuffer/WrappedCursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ def convert_query_in_printf_format(sql, var_dict_list, sql_conv_map):
for item in items:
if item not in var_dict:
raise KeyError(f"{item} is missing in SQL parameters")
if item not in paramList:
if item not in params:
params.append(var_dict[item])
params_list.append(params)
# using the printf style syntax
sql = re.sub(":[^ $,)\+\-]+", "%s", sql)
return sql, param_list
return sql, params_list


# proxy
Expand Down

0 comments on commit 52493f0

Please sign in to comment.