-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from ChangxingJiang/24-dev
#24:新增 DELETE 语句解析逻辑
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
语句级解析样例 | ||
""" | ||
|
||
import unittest | ||
|
||
from metasequoia_sql import SQLParser | ||
|
||
|
||
class TestDolphinSchedulerMysql(unittest.TestCase): | ||
"""使用海豚调度元数据的测试用例""" | ||
|
||
def test_delete_statement(self): | ||
"""测试 DELETE 语句解析""" | ||
SQLParser.parse_statements("DELETE FROM table_1 WHERE column1 = '3'") |