summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mssql/php_mssql.c1
1 files changed, 1 insertions, 0 deletions
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);