]> granicus.if.org Git - postgresql/commit
Blind attempt to fix _configthreadlocale() failures on MinGW.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Jan 2019 03:46:45 +0000 (22:46 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Jan 2019 03:47:23 +0000 (22:47 -0500)
commit773f594408b9abbddba558303678de6437f50c64
treef11aa4ca1a83f08813cf43b8c094ffe814050d9c
parente46a475718680db3afa7fd343a2a75ae3e5d0d8e
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
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/execute.c