Skip to content

Commit 381bc16

Browse files
author
Marina Polyakova
committed
PGPRO-8706: Fix t_isspace(), etc., when datlocprovider=i and datctype=C for 16+
See the commit f413941f41d370a7893caa3e6ed384b89a0577fd (Fix t_isspace(), etc., when datlocprovider=i and datctype=C.) in PostgreSQL 16+. A fix for previous major versions will be added later.
1 parent c2e164f commit 381bc16

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tsparser.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,14 @@ TParserInit(char *str, int len)
309309
*/
310310
if (prs->charmaxlen > 1)
311311
{
312-
Oid collation = DEFAULT_COLLATION_OID; /* TODO */
313312
pg_locale_t mylocale = 0; /* TODO */
314313

315314
prs->usewide = true;
316-
if (lc_ctype_is_c(collation))
315+
#if PG_VERSION_NUM >= 160000
316+
if (database_ctype_is_c)
317+
#else
318+
if (lc_ctype_is_c(DEFAULT_COLLATION_OID))
319+
#endif
317320
{
318321
/*
319322
* char2wchar doesn't work for C-locale and sizeof(pg_wchar) could

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