feat(sql): support dotted braced parameter names

Closes #4263
This commit is contained in:
t8y2 committed 2026-08-12 13:12:29 +00:00
1 parent a9194ba3b5
commit 86dcc75fa0
3 files changed
+49 -1

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ export interface SqlParameterOptions {
enabledSyntaxes?: readonly SqlParameterSyntax[];
}
const PARAMETER_NAME_RE = /^[\p{L}_][\p{L}\p{N}_]*$/u;
const PARAMETER_NAME_RE = /^[\p{L}_][\p{L}\p{N}_]*(?:\.[\p{L}_][\p{L}\p{N}_]*)*$/u;
const PARAMETER_NAME_START_RE = /[\p{L}_]/u;
const PARAMETER_NAME_CHAR_RE = /[\p{L}\p{N}_]/u;
const SQL_SERVER_TEMP_TABLE_CONTEXT_KEYWORDS = new Set(["table", "from", "join", "into", "update", "truncate"]);