MySQL Forums
Forum List  »  Connector/ODBC

Re: MySQL Connector/ODBC: unixODBC: Pass Env Variable to INITSTMT
Posted by: Bogdan Degtyariov
Date: January 15, 2018 04:21AM

Hi Brian,

there is no way to pass the env variable through INITSTMT option of the ODBC connection string.
However, you can make a script, which creates a DSN using myodbc-installer with the value for INITSTMT generated using the env variable value.
That is a bit more work and extra steps to be done before using a DSN, but it should be able to do the trick.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL Connector/ODBC: unixODBC: Pass Env Variable to INITSTMT
January 15, 2018 04:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.