[ODBC] Static buffer is not thread safe - Mailing list pgsql-odbc

From Scott Beil
Subject [ODBC] Static buffer is not thread safe
Date
Msg-id 877641750-63580@mail.800link.com
Whole thread Raw
List pgsql-odbc
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

pgsql-odbc by date:

Previous
From: Malik Al-RaWahi
Date:
Subject: [ODBC] postgresql odbc
Next
From: hiroshi@winpg.jp (Hiroshi Saito)
Date:
Subject: [ODBC] psqlODBC 09.06.0410 Released