Repository navigation
v1.3.2
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 theFROMkeyword 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
ASclause was followed by one or more--single-line comments before theSELECTbody,SchemaDifferfailed 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. -
ExtractSelectListdouble-quoted 識別符誤判修正:ExtractSelectList在掃描FROM關鍵字時,未跳過 double-quoted 識別符(如欄位名稱"FromName")內的字元,導致識別符中的FROM文字被誤認為關鍵字,造成 SELECT 清單截取錯誤。現在掃描過程中會正確追蹤"..."範圍並跳過其內容。EN:
ExtractSelectListdouble-quoted identifier fix: TheExtractSelectListscanner did not skip characters inside double-quoted identifiers (e.g., a column named"FromName"), so the literal textFROMinside such identifiers was mistakenly treated as theFROMkeyword, producing an incorrect SELECT column list. The scanner now tracks"..."ranges and skips their contents.
⚠️ Breaking Changes / 重大變更
無 / None