Open TennyZhuang opened 6 months ago
I can help to implement that.
Another option is create a newtype EscapeChar
to represent ''
or a single character, and store an Option<EscapeChar>
in the AST.
I'd like to port https://github.com/risingwavelabs/risingwave/pull/15867/commits/b05cb06719d668ce86a4eb5882e9f284b3c03251 back to the repo, if the fix is reasonable.
Seems resonable to me
Currently, we use
Option<char>
to representescape_char
, which cannot represent three case. We should introduce a new enum to represent that.to pass the case:
https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-LIKE:~:text=it's%20also%20possible%20to%20select%20no%20escape%20character%20by%20writing%20escape%20''