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