Skip to content

Commit 9e037c0

Browse files
committed
Support for T-SQL
1 parent 9c85b04 commit 9e037c0

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/parser/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,9 @@ impl From<bool> for MatchedTrailingBracket {
219219
#[derive(Debug, Clone, PartialEq, Eq)]
220220
pub struct ParserOptions {
221221
pub trailing_commas: bool,
222-
223222
/// Controls how literal values are unescaped. See
224223
/// [`Tokenizer::with_unescape`] for more details.
225224
pub unescape: bool,
226-
227225
/// Controls if the parser expects a semi-colon token
228226
/// between statements.
229227
pub require_semicolon_stmt_delimiter: bool,

tests/sqlparser_mssql.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,8 +2502,5 @@ DECLARE @Y AS NVARCHAR(MAX)='y'
25022502

25032503
let stmts = tsql().parse_sql_statements(sql).unwrap();
25042504
assert_eq!(stmts.len(), 2);
2505-
assert_eq!(
2506-
stmts.iter().all(|s| matches!(s, Statement::Declare { .. })),
2507-
true
2508-
);
2505+
assert!(stmts.iter().all(|s| matches!(s, Statement::Declare { .. })));
25092506
}

0 commit comments

Comments
 (0)