cvs: php4 /ext/mssql php_mssql.c

From: Date: Fri, 20 Oct 2000 20:58:57 +0000
Subject: cvs: php4 /ext/mssql php_mssql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2173@lists.php.net to get a copy of this message
fmk Fri Oct 20 13:58:57 2000 EDT Modified files: /php4/ext/mssql php_mssql.c Log: Fixing bug #6000 Return the full content for datetime colums Make the same fix for smalldatetime Index: php4/ext/mssql/php_mssql.c diff -u php4/ext/mssql/php_mssql.c:1.29 php4/ext/mssql/php_mssql.c:1.30 --- php4/ext/mssql/php_mssql.c:1.29 Fri Oct 20 13:49:35 2000 +++ php4/ext/mssql/php_mssql.c Fri Oct 20 13:58:57 2000 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mssql.c,v 1.29 2000/10/20 20:49:35 fmk Exp $ */ +/* $Id: php_mssql.c,v 1.30 2000/10/20 20:58:57 fmk Exp $ */ #ifdef COMPILE_DL_MSSQL #define HAVE_MSSQL 1 @@ -716,6 +716,7 @@ if (dbwillconvert(column_type,SQLCHAR)) { char *res_buf; int res_length = dbdatlen(mssql_ptr->link,offset) + 1; + if (column_type == SQLDATETIM4) res_length += 14; if (column_type == SQLDATETIME) res_length += 10; res_buf = (char *) emalloc(res_length);

« previous php.cvs (#2173) next »