fix(editor): 修复 Kingbase 反引号 SQL 诊断误报

This commit is contained in:
zipg authored and GitHub committed 2026-07-20 11:33:25 +08:00
1 parent 71ce46e5fd
commit 1e76d60f16
4 files changed
+31 -1

No files matched your search

+9
View File
@@ -55,6 +55,15 @@ fn extracts_mysql_quoted_table_references() {
assert_eq!(analysis.tables[0].span.end_column, 24);
}
#[test]
fn extracts_mysql_qualified_backtick_table_references() {
let analysis = analyze_sql_references("SELECT * FROM `core`.`products` LIMIT 100;", Some("mysql")).unwrap();
assert_eq!(analysis.tables.len(), 1);
assert_eq!(analysis.tables[0].schema.as_deref(), Some("core"));
assert_eq!(analysis.tables[0].name, "products");
}
#[test]
fn extracts_mysql_single_quoted_table_references() {
let analysis = analyze_sql_references("SELECT * FROM 't_10001' LIMIT 100", Some("mysql")).unwrap();