This is an automated email from the ASF dual-hosted git repository.

sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new db14c469c93 Refactor BaseDQLE2EIT (#31397)
db14c469c93 is described below

commit db14c469c93ae25d34eb764020e22ff032c0a3e5
Author: Liang Zhang <[email protected]>
AuthorDate: Sun May 26 14:31:43 2024 +0800

    Refactor BaseDQLE2EIT (#31397)
---
 .../apache/shardingsphere/test/e2e/engine/type/dql/BaseDQLE2EIT.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/test/e2e/sql/src/test/java/org/apache/shardingsphere/test/e2e/engine/type/dql/BaseDQLE2EIT.java
 
b/test/e2e/sql/src/test/java/org/apache/shardingsphere/test/e2e/engine/type/dql/BaseDQLE2EIT.java
index 193bfed4034..80e9c7824e8 100644
--- 
a/test/e2e/sql/src/test/java/org/apache/shardingsphere/test/e2e/engine/type/dql/BaseDQLE2EIT.java
+++ 
b/test/e2e/sql/src/test/java/org/apache/shardingsphere/test/e2e/engine/type/dql/BaseDQLE2EIT.java
@@ -33,6 +33,7 @@ import javax.sql.DataSource;
 import javax.xml.bind.JAXBException;
 import java.io.IOException;
 import java.math.BigDecimal;
+import java.sql.Clob;
 import java.sql.ResultSet;
 import java.sql.ResultSetMetaData;
 import java.sql.SQLException;
@@ -188,6 +189,8 @@ public abstract class BaseDQLE2EIT {
                             ? expectedResultSet.getTimestamp(i + 
1).toLocalDateTime().format(DateTimeFormatterFactory.getStandardFormatter())
                             : actualValue;
                     assertThat(String.valueOf(convertedActualValue), 
is(String.valueOf(convertedExpectedValue)));
+                } else if (expectedValue instanceof Clob) {
+                    assertThat(String.valueOf(actualValue), is(((Clob) 
expectedValue).getSubString(1, (int) ((Clob) expectedValue).length())));
                 } else if (actualValue instanceof String && expectedValue 
instanceof byte[]) {
                     assertThat(actualValue, is(new String((byte[]) 
expectedValue)));
                 } else {

Reply via email to