apache / apache/datafusion-sqlparser-rs

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

オープン
#1,198 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
3.5k
フォーク
772
平均マージ
4日 9時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。