Skip to content

Commit

Permalink
Fix SQL GROUP BY collumn name escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Apr 18, 2024
1 parent bb27c05 commit 25cf1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector/v.db.select/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ int main(int argc, char **argv)
char *buf = NULL;

buf = G_malloc((strlen(options.group->answer) + 8));
sprintf(buf, " GROUP BY %s", options.group->answer);
sprintf(buf, " GROUP BY \"%s\"", options.group->answer);
db_append_string(&sql, buf);
G_free(buf);
}
Expand Down

0 comments on commit 25cf1d9

Please sign in to comment.