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 摘要。