Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit381bc16

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 previousmajor versions will be added later.
1 parentc2e164f commit381bc16

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-
Oidcollation=DEFAULT_COLLATION_OID;/* TODO */
313312
pg_locale_tmylocale=0;/* TODO */
314313

315314
prs->usewide= true;
316-
if (lc_ctype_is_c(collation))
315+
#ifPG_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)

[8]ページ先頭

©2009-2025 Movatter.jp