diff options
| author | Peter Eisentraut | 2022-02-14 20:29:45 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2022-02-14 22:07:35 +0000 |
| commit | b45fa793406d6007a787c586c1960b1ffc2ef2fb (patch) | |
| tree | 0a6e3c725744e80f8d2cc6a4341de8abf5f9c013 /src | |
| parent | cfc7191dfea330dd7a71e940d59de78129bb6175 (diff) | |
Remove one use of pg_atoi()
There was no real need to use this here instead of a simpler API.
Reviewed-by: John Naylor <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/[email protected]
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/utils/adt/jsonpath_gram.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/jsonpath_gram.y b/src/backend/utils/adt/jsonpath_gram.y index 7a251b892d7..7311d12e35a 100644 --- a/src/backend/utils/adt/jsonpath_gram.y +++ b/src/backend/utils/adt/jsonpath_gram.y @@ -232,7 +232,7 @@ array_accessor: ; any_level: - INT_P { $$ = pg_atoi($1.val, 4, 0); } + INT_P { $$ = pg_strtoint32($1.val); } | LAST_P { $$ = -1; } ; |
