TeslaCN commented on issue #22544: URL: https://github.com/apache/shardingsphere/issues/22544#issuecomment-1501290638
> > Temporary solution is introducing PostgreSQL JDBC Driver to avoid `ClassNotFoundException`. > > @TeslaCN What is the formal solution? If needed, perhaps I could offer assistance? Hi @iamhucong I think we could create our own `PostgreSQLException` extends SQLException and replace PSQLException with it. Would you like to submit a PR? 1. Create a `PostgreSQLException` extends SQLException. 2. Handle `PostgreSQLException` in `org.apache.shardingsphere.proxy.frontend.postgresql.err.PostgreSQLErrPacketFactory`. -- 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]
