Flag to free the where builder when compiling

This commit is contained in:
2020-10-07 12:40:04 +01:00
parent 12db8ea12c
commit b62a3f0c99
4 changed files with 11 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ void compileLogic_sb(where_logic *logic, str_builder *sb)
strbld_char(sb, '(');
for (size_t i = 0; i < logic->n_clauses; i++) {
compileWhereBuilder_sb(logic->clauses[i], sb);
compileWhereBuilder_sb(logic->clauses[i], sb, 0);
if (i < (logic->n_clauses - 1)) {
if (logic->logic_type == OR) {
strbld_str(sb, " OR ", 4);