Skip to content

Commit

Permalink
forgot name
Browse files Browse the repository at this point in the history
  • Loading branch information
klahnakoski committed May 23, 2024
1 parent abf05d6 commit c46a95c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_sql_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,9 @@ def test_issue_237_declare_var(self):
sql = """create procedure k() BEGIN
DECLARE @MYVARIABLE INT = 42;
END"""
with Debugger():
result = parse(sql)
expected = {"create_procedure": {"body": {"block": {"declare": {
"default": 42,
"name": "@MYVARIABLE",
"type": {"int": {}},
}}}}}
result = parse(sql)
expected = {"create_procedure": {
"name": "k",
"body": {"block": {"declare": {"default": 42, "name": "@MYVARIABLE", "type": {"int": {}},}}},
}}
self.assertEqual(result, expected)

0 comments on commit c46a95c

Please sign in to comment.