Skip to content

Commit 4b7e35f

Browse files
committed
FIX: Remove unnecessary escaping for opening braces in connection string parser
1 parent 3a12f0f commit 4b7e35f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mssql_python/connection_string_parser.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,8 @@ def _parse_braced_value(self, connection_str: str, start_pos: int) -> Tuple[str,
366366
# Single '}' means end of braced value
367367
start_pos += 1
368368
return "".join(value), start_pos
369-
elif ch == "{":
370-
# Opening braces do not need escaping per ODBC spec
371-
# Keep them as literal characters
372-
value.append(ch)
373-
start_pos += 1
374369
else:
375-
# Regular character
370+
# Regular character (including '{' which doesn't need escaping per ODBC spec)
376371
value.append(ch)
377372
start_pos += 1
378373

0 commit comments

Comments
 (0)