Files
tidb/expression
maiyang c219218a19 fix REPLACE FUNC (#3082)
when the from_str is "", use REPLACE FUNC.

+-----------------------------------------------------------------------+
| REPLACE('www.mysql.com', '', 'tidb')                                  |
+-----------------------------------------------------------------------+
| tidbwtidbwtidbwtidb.tidbmtidbytidbstidbqtidbltidb.tidbctidbotidbmtidb |
+-----------------------------------------------------------------------+
1 row in set (0.01 sec)
But the correct result should be:

+-----------------------------------------------------------------------+
| REPLACE('www.mysql.com', '', 'tidb')                                  |
+-----------------------------------------------------------------------+
| www.mysql.com |
+-----------------------------------------------------------------------+
1 row in set (0.01 sec)
2017-04-19 12:45:51 +08:00
..
2017-04-19 12:45:51 +08:00
2017-03-29 08:55:49 +08:00