[fix](cache) fix same sql return wrong result when switch database with use db
and enable sql cache
#51206
Loading
use db
and enable sql cache
#51206