Thread: [ODBC] Static buffer is not thread safe

[ODBC] Static buffer is not thread safe

From
Scott Beil
Date:
Hi psqlODBC Team,

A few days ago, I sent an email with the subject '"relation does not exist" errors with psqlODBC' which described an intermittent error I observed and included a demo project to recreate the problem. The error was 'column "column_name" of relation "table_name" does not exist'.

I haven't heard anything back so I don't know what the status is, but I have found the source of the problem. In the misc.c source file, the function quote_table() declares a static buffer that is not thread safe:

static char buf[200];

Thanks,

Scott