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 cdfb198c3cd Fix sonar issue (#30023)
cdfb198c3cd is described below
commit cdfb198c3cd319720ccfd55167732ce730f51cdb
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Feb 6 19:13:49 2024 +0800
Fix sonar issue (#30023)
---
.../extended/bind/protocol/PostgreSQLUUIDBinaryProtocolValueTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/db-protocol/postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLUUIDBinaryProtocolValueTest.java
b/db-protocol/postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLUUIDBinaryProtocolValueTest.java
index 8b7375e3b7e..d372343d223 100644
---
a/db-protocol/postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLUUIDBinaryProtocolValueTest.java
+++
b/db-protocol/postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLUUIDBinaryProtocolValueTest.java
@@ -33,7 +33,7 @@ class PostgreSQLUUIDBinaryProtocolValueTest {
@Test
void assertGetColumnLength() {
- assertThat(new
PostgreSQLUUIDBinaryProtocolValue().getColumnLength(UUID.randomUUID()), is(16));
+ assertThat(new
PostgreSQLUUIDBinaryProtocolValue().getColumnLength(UUID.fromString("00000000-000-0000-0000-000000000001")),
is(16));
}
@Test