Fix partition rewrite problems

This commit is contained in:
lazio579 2019-04-26 10:33:52 +08:00
parent 921c62b9e4
commit 6d3b65750c

View File

@ -582,6 +582,9 @@ sql_construct_update(sql_update_t *p)
for (i = 0; p->set_list && i < p->set_list->len; ++i) {
sql_expr_t *expr = g_ptr_array_index(p->set_list, i);
append_sql_expr(s, expr);
if ((i + 1) < p->set_list->len) {
g_string_append(s, ",");
}
}
if (p->where_clause) {