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:
parent
f240c89faf
commit
fac819b81c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user