Skip to content
Snippets Groups Projects
Commit 12c1cf35 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Fixed empty insert query

Fix for situation when len(values) is 0. Before fix it will result with
malformed insert query with empty values vector.
parent 6d1242e6
No related branches found
No related tags found
5 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!16Dk issue 3 concurrent block query rebase,!15Dk issue 3 concurrent block query
......@@ -238,7 +238,7 @@ class Posts:
DB.query(actual_query)
values.clear()
if len(values) >= 0:
if len(values) > 0:
values_str = ','.join(values)
actual_query = sql.format(values_str)
DB.query(actual_query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment