apache / apache/datafusion-sqlparser-rs

`LIKE ... ESCAPE <escape_char>` should accept an empty string

未關閉
#1,198 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
3.5k
分支
772
平均合併
4 天 9 小時
30 天內合併 PR
17

描述

Currently, we use `Option` to represent `escape_char`, which cannot represent three case. We should introduce a new enum to represent that.

```rust
enum EscapeChar {
NotSpecified,
Empty,
Escape(char),
}
```

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''

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

未指定任何檔案、測試或進入點。首先從 `Option` 開始,追蹤 `escape_char` 的 Rust 表示經過剖析的過程,然後檢查 PostgreSQL 的 `ESCAPE ''` 如何表示及測試;當空白、未指定和字元這幾種情況仍保持區分時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
postgresql, rust
領域
compilers, databases
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。