Blind attempt to fix _configthreadlocale() failures on MinGW.
Tom Lane <tgl@sss.pgh.pa.us>
Blind attempt to fix _configthreadlocale() failures on MinGW. Apparently, some builds of MinGW contain a version of _configthreadlocale() that always returns -1, indicating failure. Rather than treating that as a curl-up-and-die condition, soldier on as though the function didn't exist. This leaves us without thread safety on such MinGW versions, but we didn't have it anyway. Discussion: https://postgr.es/m/d06a16bc-52d6-9f0d-2379-21242d7dbe81@2ndQuadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/ecpglib/descriptor.c | modified | +1 −1 |
| src/interfaces/ecpg/ecpglib/execute.c | modified | +11 −9 |
Discussion
- Thread-unsafe coding in ecpg 37 messages · 2019-01-18 → 2019-01-29