Skip to content

Commit 066e3a6

Browse files
committed
Fix locale pointer use in WIN32 code path
Author: David Rowley <david.rowley@2ndquadrant.com>
1 parent e148009 commit 066e3a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/varlena.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
14901490
errno = 0;
14911491
#ifdef HAVE_LOCALE_T
14921492
if (mylocale)
1493-
result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale);
1493+
result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale->info.lt);
14941494
else
14951495
#endif
14961496
result = wcscoll((LPWSTR) a1p, (LPWSTR) a2p);

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