apache / apache/datafusion-sqlparser-rs

MS SQL create table parse error

オープン
#1,264 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
3.5k
フォーク
772
平均マージ
4日 9時間
マージ済み PR(30日)
17

説明

This is a mirror of[ the C# issue found here](https://github.com/TylerBrinks/SqlParser-cs/issues/16)

MS SQL parsing expects a comma after `primary key` and does not accept the `identity` keyword

```
#[test]
fn parse_ms_sql_create_column_with_identity(){
let sql = "create table T_Users(id bigint primary key identity, username varchar(255) not null);";
ms().verified_only_select(sql);
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

`parse_ms_sql_create_column_with_identity` の再現ケースを読み、`ms().verified_only_select(sql)` に通して実行します。リンクされた C# issue をコンテキストとして使用し、提示された CREATE TABLE 文の MS SQL パース経路を追跡します。完了条件は、テストがカンマを要求せずに `primary key identity` を受け入れることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust, sql
領域
databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。