mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix FixedString comparison #11393
This commit is contained in:
parent
1b9e72f9ad
commit
3658ea6e55
@ -262,7 +262,7 @@ struct StringComparisonImpl
|
||||
{
|
||||
size_t size = a_data.size();
|
||||
for (size_t i = 0, j = 0; i < size; i += a_n, ++j)
|
||||
c[j] = Op::apply(0, memcmpSmallLikeZeroPaddedAllowOverflow15(a_data.data() + i, a_n, b_data.data(), b_size));
|
||||
c[j] = Op::apply(memcmpSmallLikeZeroPaddedAllowOverflow15(a_data.data() + i, a_n, b_data.data(), b_size), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
1
|
||||
1
|
@ -0,0 +1,2 @@
|
||||
select toFixedString(unhex('202005295555'), 15) > unhex('20200529') r;
|
||||
select materialize(toFixedString(unhex('202005295555'), 15)) > unhex('20200529') r;
|
Loading…
Reference in New Issue
Block a user