pingcap / pingcap/tidb

Correct errors to match those of MySQL

Open
#57,880 0 comments 0 reactions 0 assignees View on GitHub
compatibility-mysql80 type/compatibility
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

For some cases the error number and message are different:

```
mysql-9.0.1> SELECT TIME '101112';
+---------------+
| TIME '101112' |
+---------------+
| 10:11:12 |
+---------------+
1 row in set (0.00 sec)

mysql-9.0.1> SELECT TIME '109112';
ERROR 1525 (HY000): Incorrect TIME value: '109112'
```

```
tidb> SELECT TIME '101112';
+---------------+
| TIME '101112' |
+---------------+
| 10:11:12 |
+---------------+
1 row in set (0.01 sec)

tidb> SELECT TIME '109112';
ERROR 1292 (22007): Truncated incorrect time value: '109112'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.