From cabc4bbb29dd601dafc4df040fae243c02b70999 Mon Sep 17 00:00:00 2001 From: jianbin Date: Tue, 20 Feb 2024 09:33:07 +0800 Subject: [PATCH] update test case --- .../io/seata/sqlparser/druid/mysql/MySQLUpdateRecognizer.java | 1 - .../io/seata/sqlparser/druid/MySQLUpdateRecognizerTest.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/mysql/MySQLUpdateRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/mysql/MySQLUpdateRecognizer.java index ba1ed2ce445..46ac5832e96 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/mysql/MySQLUpdateRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/mysql/MySQLUpdateRecognizer.java @@ -41,7 +41,6 @@ import io.seata.sqlparser.SQLUpdateRecognizer; import io.seata.common.exception.NotSupportYetException; import io.seata.common.exception.ShouldNeverHappenException; -import io.seata.sqlparser.util.ColumnUtils; /** * The type My sql update recognizer. diff --git a/sqlparser/seata-sqlparser-druid/src/test/java/io/seata/sqlparser/druid/MySQLUpdateRecognizerTest.java b/sqlparser/seata-sqlparser-druid/src/test/java/io/seata/sqlparser/druid/MySQLUpdateRecognizerTest.java index 83a31383cca..e7e732378fa 100644 --- a/sqlparser/seata-sqlparser-druid/src/test/java/io/seata/sqlparser/druid/MySQLUpdateRecognizerTest.java +++ b/sqlparser/seata-sqlparser-druid/src/test/java/io/seata/sqlparser/druid/MySQLUpdateRecognizerTest.java @@ -96,9 +96,7 @@ public void updateRecognizerTest_2() { MySQLUpdateRecognizer mySQLUpdateRecognizer = new MySQLUpdateRecognizer(sql, statement); List updateColumns = mySQLUpdateRecognizer.getUpdateColumns(); - List whereColumns = mySQLUpdateRecognizer.getWhereColumns(); List updateValues = mySQLUpdateRecognizer.getUpdateValues(); - Assertions.assertEquals("id", whereColumns.get(0)); Assertions.assertEquals(sql, mySQLUpdateRecognizer.getOriginalSQL()); Assertions.assertEquals("t1", mySQLUpdateRecognizer.getTableName()); Assertions.assertEquals(2, updateColumns.size());