value of tidb_sysdate_is_now
seems cached in expression in planCache and not respect the current setting
#49299
Labels
tidb_sysdate_is_now
seems cached in expression in planCache and not respect the current setting
#49299
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
It should respect the current value of
tidb_sysdate_is_now
like no use plan cache:3. What did you see instead (Required)
The
sysdate(6) = now(6)
is false even we changetidb_sysdate_is_now
to 1 when plan cache enabled.4. What is your TiDB version? (Required)
Tested in nightly build
The text was updated successfully, but these errors were encountered: