mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix locale pointer use in WIN32 code path
Author: David Rowley <david.rowley@2ndquadrant.com>
This commit is contained in:
@ -1490,7 +1490,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
#ifdef HAVE_LOCALE_T
|
#ifdef HAVE_LOCALE_T
|
||||||
if (mylocale)
|
if (mylocale)
|
||||||
result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale);
|
result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale->info.lt);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
result = wcscoll((LPWSTR) a1p, (LPWSTR) a2p);
|
result = wcscoll((LPWSTR) a1p, (LPWSTR) a2p);
|
||||||
|
Reference in New Issue
Block a user