[unixODBC-dev] odbc.ini configuration

Nick Gorham nick at lurcher.org
Thu Oct 16 20:27:42 BST 2008


Marco Vieira wrote:

> Hi all,
>
> Could some one help me solving this problem.
>
> in my odbc.ini I'm trying to add the following parameter:
>
> *DMEnvAttr = 
> SQL_ATTR_UNIXODBC_ENVATTR={CLASSPATH=/path_for_jar/jarFile.jar}*
>
> When i use "*isql DEMOBRIDGE*" to test my driver on the trace file a 
> get this msg that says that is missing a class from the jarFile.jar.
>
> *[ODBC][3855][SQLConnect.c][3576]
>                 Entry:
>                         Connection = 0x8050380
>                         Server Name = [DEMOBRIDGE][length = 12 (SQL_NTS)]
>                         User Name = [NULL]
>                         Authentication = [NULL]
>                 ENV ATTR 
> [SQL_ATTR_UNIXODBC_ENVATTR=$CLASSPATH=**/path_for_jar/jarFile.jar**] 
> ret = -1*
>
Hi,

the -1 indicates that it failed to set the value. So for example:

        DMEnvAttr       = 
SQL_ATTR_UNIXODBC_ENVATTR={ORACLE_HOME=/home/nick/product/9.2.0/}

Shows in the log file

        ENV ATTR 
[SQL_ATTR_UNIXODBC_ENVATTR=ORACLE_HOME=/home/nick/product/9.2.0/] ret = 0

I would check where the $ has come from

-- 
Nick


More information about the unixODBC-dev mailing list