You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/05/11 06:01:53 UTC

[GitHub] [shardingsphere] menghaoranss opened a new issue #10302: Support to execute “;” command separately for PostgreSQL

menghaoranss opened a new issue #10302:
URL: https://github.com/apache/shardingsphere/issues/10302


   The driver of PostgreSQL for `Go` , `Ping()` method is implemented by executing ";" separately, but proxy can not parse it now.
   
   ```
   func (cn *conn) Ping(ctx context.Context) error {
   	if finish := cn.watchCancel(ctx); finish != nil {
   		defer finish()
   	}
   	rows, err := cn.simpleQuery(";")
   	if err != nil {
   		return driver.ErrBadConn // https://golang.org/pkg/database/sql/driver/#Pinger
   	}
   	rows.Close()
   	return nil
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu closed issue #10302: Support to execute “;” command separately for PostgreSQL

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #10302:
URL: https://github.com/apache/shardingsphere/issues/10302


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org