Skip to content

v1.3.2

Choose a tag to compare

@lawrence8358 lawrence8358 released this 31 May 13:25
· 18 commits to main since this release
d9bbedf

Release v1.3.2

發布日期 (Date): 2026-05-31

主要亮點 (Highlights):

  • 修正 View Script 含單行 SQL 註解(--)時,差異比對邏輯誤判 View 需要重建的問題,並同步修正 double-quoted 識別符導致的 FROM 關鍵字誤判。
  • Fixed an issue where single-line SQL comments (--) in View scripts caused the diff engine to incorrectly detect the View as needing a rebuild. Also fixed misidentification of the FROM keyword inside double-quoted identifiers.

🌟 What's New / 主要更新

🚀 Features / 新功能

無 / None


🛠 Refactoring & Improvements / 重構與效能優化

無 / None


🐛 Bug Fixes / 問題修復

  • View 差異比對誤判修正:當 View 的 AS 子句後緊接單行 SQL 註解(-- 開頭)時,SchemaDiffer 在提取 SELECT 本體前未先跳過這些注釋行,導致比對邏輯無法正確解析 View 結構,進而錯誤判斷 View 需要重建。現在會在提取 SELECT 本體前,逐行略過所有前置 -- 單行注釋。

    EN: View diff false-positive rebuild fix: When a View's AS clause was followed by one or more -- single-line comments before the SELECT body, SchemaDiffer failed to strip those comment lines prior to parsing, causing the diff engine to misidentify the View as changed and trigger an unnecessary rebuild. The fix pre-strips all leading -- comment lines before extracting the SELECT body.

  • ExtractSelectList double-quoted 識別符誤判修正:ExtractSelectList 在掃描 FROM 關鍵字時,未跳過 double-quoted 識別符(如欄位名稱 "FromName")內的字元,導致識別符中的 FROM 文字被誤認為關鍵字,造成 SELECT 清單截取錯誤。現在掃描過程中會正確追蹤 "..." 範圍並跳過其內容。

    EN: ExtractSelectList double-quoted identifier fix: The ExtractSelectList scanner did not skip characters inside double-quoted identifiers (e.g., a column named "FromName"), so the literal text FROM inside such identifiers was mistakenly treated as the FROM keyword, producing an incorrect SELECT column list. The scanner now tracks "..." ranges and skips their contents.


⚠️ Breaking Changes / 重大變更

無 / None