diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-20 09:15:28 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-20 09:15:28 +0300 |
commit | 48c67038b9173887254a25ae05eb232d95ff8bc8 (patch) | |
tree | 253e371658c99a6f940e8ac1c74a64a5885d3311 /sql-common | |
parent | 12e3ac04febe16dd3ee15cd99f9196a60261f1b4 (diff) | |
parent | bc89b1c5582ac4044317a84e8a73d97fd1db9041 (diff) | |
download | mariadb-git-48c67038b9173887254a25ae05eb232d95ff8bc8.tar.gz |
Merge 10.1 into 10.2
For MDEV-15955, the fix in create_tmp_field_from_item() would cause a
compilation error. After a discussion with Alexander Barkov, the fix
was omitted and only the test case was kept.
In 10.3 and later, MDEV-15955 is fixed properly by overriding
create_tmp_field() in Item_func_user_var.
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/my_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c index 7017f7a39a9..90ce0b11c1e 100644 --- a/sql-common/my_time.c +++ b/sql-common/my_time.c @@ -184,7 +184,7 @@ static int get_date_time_separator(uint *number_of_fields, ulonglong flags, do { s++; - } while (my_isspace(&my_charset_latin1, *s)); + } while (s < end && my_isspace(&my_charset_latin1, *s)); *str= s; return 0; } |