Skip to content

Commit

Permalink
Fix col_size to default int_max
Browse files Browse the repository at this point in the history
Signed-off-by: Chenxiao Wang <[email protected]>
  • Loading branch information
Chenxiao Wang committed Dec 12, 2024
1 parent dec4c87 commit f0f04dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils/adt/jsonpath_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ tsql_openjson_with_columnize(Jsonb *jb, char *col_info)
if (token)
{
token = strtok(NULL, ")");
if (token)
if (token && atoi(token) > 0)
col_size = atoi(token);
}
}
Expand Down

0 comments on commit f0f04dc

Please sign in to comment.