mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
More thread safety
This commit is contained in:
parent
e92f14f9c4
commit
86741f4614
@ -1608,8 +1608,8 @@ SQLRETURN SQL_API SQLGetData(
|
||||
default: /* FIXME here we assume fCType == SQL_C_CHAR */
|
||||
to_c_char:
|
||||
{
|
||||
static size_t len = 0;
|
||||
static char *str = NULL;
|
||||
static __thread size_t len = 0;
|
||||
static __thread char *str = NULL;
|
||||
|
||||
if (col->col_type == MDB_OLE) {
|
||||
if (stmt->pos == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user