phpmyadmin / phpmyadmin/sql-parser
Support multiple-table syntax of DELETE statement
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- PHP
- 星标
- 485
- 派生
- 119
- PR 合并指标
- 30 天内没有已合并 PR
描述
Docs: https://dev.mysql.com/doc/refman/8.0/en/delete.html#idm140219041342912
There are two possible forms of multiple-table delete statement (queries based on this tutorial):
DELETE t1, t2 FROM t1 INNER JOIN t2 ON t2.ref = t1.id WHERE t1.id = 1DELETE FROM t1, t2 USING t1 INNER JOIN t2 ON t2.ref = t1.id WHERE t1.id = 1;
Looks like the former one is supported but the latter one is not – it ends up with two ParseExceptions.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先比较 parser 如何处理 issue 中所示的两种多表 DELETE 形式,并使用链接的 MySQL 文档确认语法。重现这两个 ParseExceptions,并验证 DELETE FROM ... USING 形式能够成功解析,同时不会导致已支持形式出现回归。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- mysql, php
- 领域
- databases, tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100