Skip to content

Commit cdcfd38

Browse files
Merge pull request #40 from postgrespro/PGPRO-6864
PGPRO-6864: do not use the function pg_atoi if possible
2 parents 3293e48 + e45ff38 commit cdcfd38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jsquery_gram.y

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ makeIndexArray(string *s)
7171
{
7272
JsQueryParseItem* v = makeItemType(jqiIndexArray);
7373

74+
#if PG_VERSION_NUM >= 120000
75+
v->arrayIndex = pg_strtoint32(s->val);
76+
#else
7477
v->arrayIndex = pg_atoi(s->val, 4, 0);
78+
#endif
7579

7680
return v;
7781
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy