From 83e3e5d69f7897a36922cb548f21379a7fd56c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E5=BA=B7?= <49478192+pengkang1991@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:51:58 +0800 Subject: [PATCH] fix bug --- sql/engines/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/engines/tests.py b/sql/engines/tests.py index cedaece86a..88cea4d093 100644 --- a/sql/engines/tests.py +++ b/sql/engines/tests.py @@ -197,7 +197,7 @@ def test_filter_sql_with_distinct(self): # 只抽查一个函数 banned_sql = "select distinct * from user_table" check_result = new_engine.filter_sql(sql=banned_sql, limit_num=10) - self.assertEqual(check_result, "select distinct top 10 * user from user_table") + self.assertEqual(check_result, "select distinct top 10 * from user_table") def test_execute_check(self): new_engine = MssqlEngine(instance=self.ins1)