pingcap/tidb

The flen of conv function should be 65

Open

#27,891 创建于 2021年9月8日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (6,186 fork)batch import
help wantedseverity/moderatesig/executiontype/bug

仓库指标

Star
 (40,090 star)
PR 合并指标
 (平均合并 14天 4小时) (30 天内合并 346 个 PR)

描述

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

SELECT CONV(123, 10, 10);

2. What did you expect to see? (Required)

The Length should be 260.

Field   1:  `CONV(123, 10, 10)`
Catalog:    `def`
Database:   ``
Table:      ``
Org_table:  ``
Type:       VAR_STRING
Collation:  utf8mb4_0900_ai_ci (255)
Length:     260
Max_length: 3
Decimals:   31
Flags:


+-------------------+
| CONV(123, 10, 10) |
+-------------------+
| 123               |
+-------------------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

mysql> SELECT CONV(123, 10, 10);
Field   1:  `CONV(123, 10, 10)`
Catalog:    `def`
Database:   ``
Table:      ``
Org_table:  ``
Type:       VAR_STRING
Collation:  utf8mb4_bin (46)
Length:     256
Max_length: 3
Decimals:   31
Flags:      NOT_NULL


+-------------------+
| CONV(123, 10, 10) |
+-------------------+
| 123               |
+-------------------+
1 row in set (0.00 sec)

4. What is your TiDB version? (Required)

master

贡献者指南