From 4682a3fe95a25ca1ba4164df5888237100ff9f08 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Fri, 20 Oct 2000 20:58:57 +0000 Subject: Fixing bug #6000 Return the full content for datetime colums Make the same fix for smalldatetime --- ext/mssql/php_mssql.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/mssql/php_mssql.c') 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); -- cgit v1.2.1