ID:               20086
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         ODBC related
 Operating System: W2K
 PHP Version:      4CVS-2002-10-25
 New Comment:

diff is now my new friend. Is this right? :-)

2110c2110
< #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)
---
> #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC) ||
defined(PHP_WIN32)
2133c2133
<                       rc = SQLDriverConnect((*conn)->hdbc, NULL, ldb, strlen(ldb),
dsnbuf, 300,
---
>                       rc = SQLDriverConnect((*conn)->hdbc, NULL, ldb,
(short)strlen(ldb), dsnbuf, 300,

The (short) typecast is to prevent a warning in win32 - don't know if
it will have issues with other platforms. Now using PHP_WIN32 not WIN32
for consistency with other code.


Previous Comments:
------------------------------------------------------------------------

[2002-10-27 19:46:08] [EMAIL PROTECTED]

Unified diffs are your and my friends.  Can you please provide one!

------------------------------------------------------------------------

[2002-10-25 09:45:46] [EMAIL PROTECTED]

In ext/odbc/php_odbc.php dsn-less connections are only supported for
empress and unixodbc. Windows also supports this connection method.

Changing the line:
#if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC)

to:
#if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC) || defined(WIN32)

enables dsn-less connections under windows.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20086&edit=1

Reply via email to