]> granicus.if.org Git - php/commitdiff
this is a fix for bug 10250. it basically provides the unixODBC driver with
authorDan Kalowsky <kalowsky@php.net>
Tue, 8 May 2001 19:47:20 +0000 (19:47 +0000)
committerDan Kalowsky <kalowsky@php.net>
Tue, 8 May 2001 19:47:20 +0000 (19:47 +0000)
access to the SQLDriver functions.  patch originally submitted by
dzoll@nyscul.org, and is going to be tested by some of the unixODBC people.

ext/odbc/php_odbc.c

index 94a6cb11f392501c4cecc79e13f2d16dca2dd560..06af9a029e44bf7035632ca73b20c1fddf738f2a 100644 (file)
@@ -1919,11 +1919,11 @@ int odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int
                        return FALSE;
                }
        }
-/*  Possible fix for bug #
- *  Needs testing on UnixODBC < 2.0.5 though.
*      #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
- *  Uncomment the line above, and comment line below to fully test */
-#ifdef HAVE_EMPRESS
+/*  Possible fix for bug #10250
+ *  Needs testing on UnixODBC < 2.0.5 though. */
+ #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
+/* *  Uncomment the line above, and comment line below to fully test 
+ * #ifdef HAVE_EMPRESS */
        {
                int     direct = 0;
                char    dsnbuf[300];