penghuazhou commented on issue #13058:
URL: 
https://github.com/apache/shardingsphere/issues/13058#issuecomment-945412908


   @tristaZero @RaigorJiang 
   why I cannot connect to shardingsphere with go language framework 
gorm(https://gorm.io/zh_CN/docs/index.html)?I can connetc with go language 
framework go-pg, also I can connect it with pgsql. Do shardingSphere-proxy not 
suggest user go language?
   
   version: shardingsphere-proxy 4.1.1, postpresql(database):14.0
   
   [INFO ] 09:36:13.648 [nioEventLoopGroup-2-1] 
i.n.handler.logging.LoggingHandler - [id: 0xac2c2499, L:/0:0:0:0:0:0:0:0:3307] 
READ COMPLETE
   line 1:0 no viable alternative at input ';'
   line 1:0 mismatched input ';' expecting {SELECT, INSERT, UPDATE, DELETE, 
CREATE, ALTER, DROP, TRUNCATE, GRANT, REVOKE, SET, BEGIN, COMMIT, ROLLBACK, 
SAVEPOINT, CALL, START, RESET, SHOW}
   [ERROR] 09:36:13.802 [pool-6-thread-1] o.a.s.s.f.c.CommandExecutorTask - 
Exception occur: 
   org.apache.shardingsphere.sql.parser.exception.SQLParsingException: 
Unsupported SQL of `;`
        at 
org.apache.shardingsphere.sql.parser.core.parser.SQLParserExecutor.execute(SQLParserExecutor.java:49)
        at 
org.apache.shardingsphere.sql.parser.SQLParserEngine.parse0(SQLParserEngine.java:79)
        at 
org.apache.shardingsphere.sql.parser.SQLParserEngine.parse(SQLParserEngine.java:61)
        at 
org.apache.shardingsphere.shardingproxy.backend.text.TextProtocolBackendHandlerFactory.newInstance(TextProtocolBackendHandlerFactory.java:69)
        at 
org.apache.shardingsphere.shardingproxy.frontend.postgresql.command.query.text.PostgreSQLComQueryExecutor.<init>(PostgreSQLComQueryExecutor.java:65)
        at 
org.apache.shardingsphere.shardingproxy.frontend.postgresql.command.PostgreSQLCommandExecutorFactory.newInstance(PostgreSQLCommandExecutorFactory.java:58)
        at 
org.apache.shardingsphere.shardingproxy.frontend.postgresql.command.PostgreSQLCommandExecuteEngine.getCommandExecutor(PostgreSQLCommandExecuteEngine.java:60)
        at 
org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:92)
        at 
org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:71)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to