XmlForClause object has wrong FirstTokenIndex value in some cases
還沒有人認領這個 Issue。
- #129 來自 @copilot-swe-agent —— 已關閉,未合併
評估
這個 Issue 還沒有評估資料。
描述
ScriptDom version: 161.9142.1
Compatibility level: 150
Sample code:
SELECT *
FROM dbo.foo
FOR XML PATH(''), ROOT ('x'), TYPE
SET @x = (SELECT *
FROM dbo.foo
FOR XML PATH(''), ROOT ('x'), TYPE);
Here, in the first case everything is ok: XmlForClause.FirstTokenIndex points to the token representing FOR keyword, the first option points to PATH.
But in the second case (FOR XML used in subquery) XmlForClause.FirstTokenIndex has the same value as for the first option and points to the token representing word PATH which is wrong
XmlForClause.FirstTokenIndex should always point to the FOR keyword.
The same issue applies to JsonForClause.
See also token-index related bug-reports: #118, #90, #91
- 主要語言
- GAP
- 星號
- 280
- 分支
- 47
- 平均合併
- 9 天 23 小時
- 30 天內合併 PR
- 2
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/SqlScriptDOM 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
microsoft/SqlScriptDOM#228 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
microsoft/SqlScriptDOM#183 ·
-
Add a Multiline option for CASE expressions (WHEN/THEN/ELSE on their own lines)可能已有人在做 @trg-alasdair 於 11 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 56/100
microsoft/SqlScriptDOM#226 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 48/100
microsoft/SqlScriptDOM#225 ·
-
難度 3/5 1-2 天 新手友好度 58/100
microsoft/SqlScriptDOM#224 ·