Closed davidshiz closed 1 year ago
The value of length(null) should also be NULL
mysql> select version();
+---------------------------------+
| version() |
+---------------------------------+
| 5.7.36-StoneDB-v1.0.1.60a8cf71f |
+---------------------------------+
1 row in set (0.00 sec)
mysql> select * from t;
+------+
| a |
+------+
| |
| NULL |
| |
| a |
+------+
4 rows in set (0.00 sec)
mysql> select length(a) from t;
+-----------+
| length(a) |
+-----------+
| 0 |
| NULL |
| 0 |
| 2 |
+-----------+
4 rows in set (0.00 sec)
@davidshiz , recheck it with the latest code.
ok
Have you read the Contributing Guidelines on issues?
Please confirm if bug report does NOT exists already ?
Describe the problem
Expected behavior
How To Reproduce
No response
Environment
Are you interested in submitting a PR to solve the problem?