1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-05-28 13:01:26 +03:00

MCOL-683 Fix nested ADDDATE and DATE_FORMAT

MariaDB sends us a UTF8 length which we shortern because we think this
is a microsecond length. We need to keep this length.
This commit is contained in:
Andrew Hutchings 2017-04-25 23:40:39 +01:00
parent f240c89faf
commit fac819b81c

View File

@ -457,7 +457,8 @@ int fetchNextRow(uchar *buf, cal_table_info& ti, cal_connection_info* ci)
* At a later date we should set this more intelligently
* based on the result set.
*/
if ((*f)->field_length > 19)
/* MCOL-683: UTF-8 datetime no msecs is 57, this sometimes happens! */
if (((*f)->field_length > 19) && ((*f)->field_length != 57))
(*f)->field_length = strlen(tmp);
Field_varstring* f2 = (Field_varstring*)*f;