PHP 4.0 Bug #10250: UnixODBC can make use of SQLDriverConnect functionality too
| From: | dzoll at nyscul dot org | Date: | Mon, 09 Apr 2001 19:16:00 +0000 |
| Subject: | PHP 4.0 Bug #10250: UnixODBC can make use of SQLDriverConnect functionality too | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51228@lists.php.net to get a copy of this message | ||
From: dzoll@nyscul.org
Operating system: linux
PHP version: 4.0.4pl1
PHP Bug Type: ODBC related
Bug description: UnixODBC can make use of SQLDriverConnect functionality too
In ext/odbc/php_odbc.c: odbc_sqlconnect(), only Openlink
and Empress can make use of the SQLDriverConnect function.
UnixODBC can use SQLDriverConnect as well, and in the case
of some Easysoft ODBC connections, it *must* be able to use
the SQLDriverConnect format in order to actually connect to
the database.
I have tried changing the
#ifdef HAVE_EMPRESS
to
#if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
and everything worked fine, giving full access to the
SQLDriverConnect method of calling odbc_connect and
odbc_pconnect. If this could be incorporated into a later
release, it would be very useful.
(BTW, this was tested with UnixODBC 2.0.5)
--
Edit Bug report at: http://bugs.php.net/?id=10250&edit=1