[unixODBC-dev] ODBC-api hooking problem

Nick Gorham nick at lurcher.org
Wed Apr 10 19:24:49 BST 2013


On 10/04/13 16:51, jon pounder wrote:
> On 04/10/2013 11:45 AM, Динар Рахимбаев wrote:
>
> I don't know for sure but I am guessing having 2 instances of the dm 
> loaded in the same process is causing trouble since there is only one 
> odbc environment per process.
>
>
> you should be able to simply call the dbms driver from within your own 
> driver though, every function do your special stuff then call the same 
> func in the driver - thats basically what the dm does now.
>

Yep, in theory it should work, but I can imagine there may be some 
reentrancy issues going on. It would probbaly be safer to make your 
driver call the targer driver directly.

-- 
Nick


More information about the unixODBC-dev mailing list