Open drgnchan opened 6 months ago
@drgnchan Currently, delete where clause does not support expr or function, it only supports literal. For example, it does not support delete from cost where minute(date) <> 59; but it support delete from cost where date = '2020-11-11';
Search before asking
Version
select version();
return5.7.99
What's Wrong?
execute: delete from cost where minute(date) <> 59;
an error is reported: SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = errCode = 2, detailMessage = Left expr of binary predicate should be column name, predicate: minute(
date
) != 59, left expr type:TINYINTWhat You Expected?
sql executed successfully.
How to Reproduce?
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct