Closed shangyanwen closed 2 years ago
Oracle treats NULL and spaces as the same, and the same is true for the stonedb of the column-stored database, so this is not a problem
mysql> select * from t2;
+------+
| b |
+------+
| |
| |
| |
| |
+------+
4 rows in set (0.00 sec)
mysql> insert into t2 values( );
Query OK, 1 row affected (0.00 sec)
mysql> select * from t2;
+------+
| b |
+------+
| NULL |
| NULL |
| NULL |
| NULL |
| NULL |
+------+
5 rows in set (0.00 sec)
mysql> insert into t2 values(' ');
Query OK, 1 row affected (0.00 sec)
mysql> select * from t2;
+------+
| b |
+------+
| |
| |
| |
| |
| |
| |
+------+
6 rows in set (0.00 sec)
mysql> insert into t2 values(NULL);
Query OK, 1 row affected (0.00 sec)
mysql> select * from t2;
+------+
| b |
+------+
| NULL |
| NULL |
| NULL |
| NULL |
| NULL |
| NULL |
| NULL |
+------+
7 rows in set (0.00 sec)
Describe the problem
Expected behavior
How To Reproduce
Environment
Are you interested in submitting a PR to solve the problem?