php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10250 UnixODBC can make use of SQLDriverConnect functionality too
Submitted: 2001-04-09 15:15 UTC Modified: 2001-05-08 15:49 UTC
From: dzoll at nyscul dot org Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.4pl1 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dzoll at nyscul dot org
New email:
PHP Version: OS:

 

 [2001-04-09 15:15 UTC] dzoll at nyscul dot org
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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-18 21:41 UTC] kalowsky@php.net
have you tried this fix with an older version of UnixODBC?
 [2001-05-08 15:49 UTC] kalowsky@php.net
now in cvs.  thank  you!
 [2004-04-02 12:22 UTC] vanderwl at us dot ibm dot com
This also applies to the iODBC driver manager.
Can this also be added to the #ifdef?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC