diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c index 9e4dbd83c55..2c21574f616 100644 --- a/src/backend/utils/adt/jsonpath_exec.c +++ b/src/backend/utils/adt/jsonpath_exec.c @@ -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); } }