Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)