From: Frank M. Kromann Date: Fri, 20 Oct 2000 20:58:57 +0000 (+0000) Subject: Fixing bug #6000 X-Git-Tag: php-4.0.4RC3~598 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4682a3fe95a25ca1ba4164df5888237100ff9f08;p=php Fixing bug #6000 Return the full content for datetime colums Make the same fix for smalldatetime --- diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 8523dfd59f..53711c3af1 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -716,6 +716,7 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int off 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);