Skip to content

Commit

Permalink
fix weird string.split() bug for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edisj committed Jul 15, 2024
1 parent be891dd commit 6529e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdaadb/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def insert_rows_into_table(
table = Table(table, self)

if columns:
place_holders = "(" + ", ".join((len(columns) * "?").split()) + ")"
place_holders = "(" + ", ".join(len(columns)*"?".split()) + ")"
column_names = ", ".join(columns)
tbl_with_cols = f"{table.name} ({column_names})"
with self.connection:
Expand All @@ -190,7 +190,7 @@ def insert_rows_into_table(

return

place_holders = "(" + ", ".join((table.n_cols * "?").split()) + ")"
place_holders = "(" + ", ".join(table.n_cols*"?".split()) + ")"
with self.connection:
(
self.INSERT_INTO(table.name)
Expand Down

0 comments on commit 6529e80

Please sign in to comment.