shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

(Proxy) Receive error response for postgres JDBC client

Open RaigorJiang opened this issue 7 years ago • 3 comments

Which version of ShardingSphere did you use?

sharding-proxy : 4.0.0-RC3-SNAPSHOT

Expected behavior

Insert record successful and get a correct response.

Actual behavior

Insert record successful but the client get an error response.

Steps to reproduce the behavior

Table structure:

CREATE TABLE public.t_encrypt ( pwd varchar(32) NULL, "content" varchar(32) NULL )

config-encrypt.yaml:

image


Code: statement.executeUpdate(SQL_INSERT);

Actual behavior: The insert is successful and Proxy is OK, but the client gets an error.

RaigorJiang avatar Nov 19 '19 06:11 RaigorJiang

The Error log is :

org.postgresql.util.PSQLException: at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:288) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:303) at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:289) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:266) at org.postgresql.jdbc.PgStatement.executeUpdate(PgStatement.java:246)

RaigorJiang avatar Nov 19 '19 06:11 RaigorJiang

version: sharding-proxy dev I also found this problem. Incorrect response result with PostgreSQLCommandCompletePacket in sharding-proxy.
image These are affected in PostgreSQLComBindExecutor. image

geomonlin avatar Jan 06 '20 12:01 geomonlin

I'll check it later.

tuohai666 avatar Apr 13 '20 04:04 tuohai666