cvs: php4(PHP_4_3) /ext/odbc php_odbc.c
| From: | Dan Kalowsky | Date: | Thu, 29 May 2003 12:34:38 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/odbc php_odbc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21308@lists.php.net to get a copy of this message | ||
kalowsky Thu May 29 08:34:38 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/odbc php_odbc.c
Log:
ODBC standards compliance is a good thing.
# Should be MFB'd, but my PHP5 is drastically different right now..
Index: php4/ext/odbc/php_odbc.c
diff -u php4/ext/odbc/php_odbc.c:1.143.2.9 php4/ext/odbc/php_odbc.c:1.143.2.10
--- php4/ext/odbc/php_odbc.c:1.143.2.9 Thu May 1 20:40:35 2003
+++ php4/ext/odbc/php_odbc.c Thu May 29 08:34:38 2003
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_odbc.c,v 1.143.2.9 2003/05/02 00:40:35 sniper Exp $ */
+/* $Id: php_odbc.c,v 1.143.2.10 2003/05/29 12:34:38 kalowsky Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -2113,7 +2113,7 @@
* #ifdef HAVE_EMPRESS */
{
int direct = 0;
- char dsnbuf[300];
+ char dsnbuf[1024];
short dsnbuflen;
char *ldb = 0;
int ldb_len = 0;
@@ -2131,7 +2131,7 @@
}
if (direct)
- rc = SQLDriverConnect((*conn)->hdbc, NULL, ldb, strlen(ldb), dsnbuf, 300,
+ rc = SQLDriverConnect((*conn)->hdbc, NULL, ldb, strlen(ldb), dsnbuf, sizeof(dsnbuf),
&dsnbuflen, SQL_DRIVER_NOPROMPT);
else
rc = SQLConnect((*conn)->hdbc, db, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS);