Merge pull request #16 from nyalldawson/reentrant

Make SQL parser/lexer reentrant
This commit is contained in:
Evan Miller
2020-08-18 07:20:35 -04:00
committed by GitHub
6 changed files with 120 additions and 85 deletions

View File

@@ -1611,8 +1611,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) {