In regards to the issue with unixODBC's isql and SA 10/11, a fix will be
included in 10.0.1.3820 and 18.104.22.1683 (or any later build number).
Note that the issue applies *only* to the isql utility and stems from
isql calling SQLConnect and passing a NULL pointer for the UID/PWD while
specifying their length as SQL_NTS. Our driver would throw an error
(HY090) when this happened. isql started doing this in 2.2.11.
Applications using unixODBC as a driver manager won't be doing this, and
I was able to use unixODBC in the role of a driver manager to load the
SA ODBC driver and connect to an SA database. If you're still having
difficulties with this, we'll investigate further.
paulius (AT) digitalwork (DOT) lt wrote:
Thanks for your reply Ray, |
I used standard CentOS 4.5 unixODBC package 2.2.11. I have compiled
2.2.14 from souces, but I don`t know if the constant was
SQL_WCHART_CONVERT defined. Where i can check this?
Now I have tried to use Sybase ASA 9.0.1 odbc driver to connect ASA
10.0.1 network server (I have tried connect to ASA 10 with ASA 9 ODBC
driver on Windows - everything worked correctly). But on linux (CentOS
4.5/CentOS 5.2) i had a problem - everything works correctly using
ISQL. I can connect to DB and make some queries. But when I try to use
unixODBC with PHP 5.1.6-20 and httpd-2.2.3-11 on CentOS 5.2 I get an
error into httpd error log - SEGMENTATION FAULT. My PHP script:
$odbc_link = odbc_connect('dsn_test', 'dba', 'sql');
I have set these variables in httpd.conf:
Sybase ASA 9 variables from file /opt/sybase/SYBSsa9/bin/asa_config.sh
are set in file /etc/profile
On 8 Gruo, 22:28, Ray Ruvinskiy <first.l... (AT) sybase (DOT) com> wrote:
Did you compile unixODBC yourself? Do you know if SQL_WCHART_CONVERT was
defined in your build?