CVS update: php3/dl/mssql

From: Date: Mon, 15 Feb 1999 19:57:25 +0000
Subject: CVS update: php3/dl/mssql
Groups: php.dev 
Request: Send a blank email to php-dev+get-4105@lists.php.net to get a copy of this message
Date: Monday February 15, 1999 @ 14:57 Author: fmk Update of /repository/php3/dl/mssql In directory asf:/u/temp/cvs-serv29456 Modified Files: mssql.c Log Message: Fixing problem with fetch int values was made too fast. Now it works Index: php3/dl/mssql/mssql.c diff -c php3/dl/mssql/mssql.c:1.13 php3/dl/mssql/mssql.c:1.14 *** php3/dl/mssql/mssql.c:1.13 Fri Feb 12 10:29:06 1999 --- php3/dl/mssql/mssql.c Mon Feb 15 14:57:23 1999 *************** *** 32,38 **** +----------------------------------------------------------------------+ */ ! /* $Id: mssql.c,v 1.13 1999/02/12 15:29:06 fmk Exp $ */ #define IS_EXT_MODULE #ifdef THREAD_SAFE # ifndef PHP_31 --- 32,38 ---- +----------------------------------------------------------------------+ */ ! /* $Id: mssql.c,v 1.14 1999/02/15 19:57:23 fmk Exp $ */ #define IS_EXT_MODULE #ifdef THREAD_SAFE # ifndef PHP_31 *************** *** 802,814 **** } if (dbwillconvert(coltype(offset),SQLCHAR)) { unsigned char *res_buf; ! int res_length = dbdatlen(mssql_ptr->link,offset) + 10; ! res_buf = (unsigned char *) emalloc(res_length+1); ! memset(res_buf, 0, res_length+1); dbconvert(NULL,coltype(offset),dbdata(mssql_ptr->link,offset), res_length, SQLCHAR,res_buf,-1); ! result->value.str.len = res_length; result->value.str.val = res_buf; result->type = IS_STRING; } else { --- 802,814 ---- } if (dbwillconvert(coltype(offset),SQLCHAR)) { unsigned char *res_buf; ! int res_length = dbdatlen(mssql_ptr->link,offset); ! res_buf = (unsigned char *) emalloc(res_length+1 + 10); ! memset(res_buf, 0, res_length+1 + 10); dbconvert(NULL,coltype(offset),dbdata(mssql_ptr->link,offset), res_length, SQLCHAR,res_buf,-1); ! result->value.str.len = strlen(res_buf); result->value.str.val = res_buf; result->type = IS_STRING; } else { -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4105) next »