Wrong collation for select concat(unix_timestamp(datetime)*1000, '') from t
#24296
Labels
select concat(unix_timestamp(datetime)*1000, '') from t
#24296
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
This bug was introduced in 4.0.11 by #19186
It also exists on 5.0 and master.
The collation of
concat(cast(mul(unix_timestamp(test.t.dt), 1000), var_string(20)), '')
should beutf8mb4
but getbinary
after this change https://github.com/pingcap/tidb/pull/19186/files#diff-3556e9d098f2adc7f39a39054ebb397bf08d9141b3f0dbba52d9f109f439f45aR162-R163The text was updated successfully, but these errors were encountered: