git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cfc7191)
Remove one use of pg_atoi()
2022年2月14日 20:29:45 +0000 (21:29 +0100)
2022年2月14日 22:07:35 +0000 (23:07 +0100)
There was no real need to use this here instead of a simpler API.

Reviewed-by: John Naylor <john.naylor@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com


diff --git a/src/backend/utils/adt/jsonpath_gram.y b/src/backend/utils/adt/jsonpath_gram.y
index 7a251b892d7f2833b963c9614a8acef75957db5c..7311d12e35ae2b47565e23b1538febd0611e24c0 100644 (file)
--- 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; }
;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /