apache / apache/datafusion-sqlparser-rs

MS SQL create table parse error

未關閉
#1,264 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
3.5k
分支
772
平均合併
4 天 9 小時
30 天內合併 PR
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 摘要。