wesql / wescale

WeScale is a Modern MySQL proxy that supports read-write-split, read-after-write-consistency, load balancing and OnlineDDL.
Apache License 2.0
196 stars 8 forks source link

Enhancement/allow filter plans empty #484

Closed newborn22 closed 2 months ago

newborn22 commented 2 months ago

Related Issue(s) & Descriptions

If user inputs "" as plans, in stmt, it will be string ""; In ruleInfo and Rule, it will be []any with a len of 0; In database, it will be string "[]".

And planMatch will return true if len(plans) == 0.

Checklist