You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2021/06/07 04:37:33 UTC
[shardingsphere] branch master updated: PostgreSQL supports
unspecified type (#10691)
This is an automated email from the ASF dual-hosted git repository.
panjuan 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 8ca798b PostgreSQL supports unspecified type (#10691)
8ca798b is described below
commit 8ca798b79373e416964d5a8439049b65adad13ff
Author: 吴伟杰 <wu...@apache.org>
AuthorDate: Mon Jun 7 12:36:48 2021 +0800
PostgreSQL supports unspecified type (#10691)
---
.../packet/command/query/binary/bind/PostgreSQLComBindPacket.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/bind/PostgreSQLComBindPacket.java b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/bind/PostgreSQLComBindPacket.java
index a098fb6..44442a3 100644
--- a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/bind/PostgreSQLComBindPacket.java
+++ b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/bind/PostgreSQLComBindPacket.java
@@ -103,6 +103,8 @@ public final class PostgreSQLComBindPacket extends PostgreSQLCommandPacket {
private Object getTextParameters(final String textValue, final PostgreSQLBinaryColumnType columnType) {
switch (columnType) {
+ case POSTGRESQL_TYPE_UNSPECIFIED:
+ return new PostgreSQLTypeUnspecifiedSQLParameter(textValue);
case POSTGRESQL_TYPE_BOOL:
return Boolean.valueOf(textValue);
case POSTGRESQL_TYPE_INT2: