-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database can not be null #61
Comments
这个异常是由Mysql驱动报的 |
去掉了catalog的复位的版本 https://github.com/Chris2018998/BeeCP/blob/master/doc/release/custom/beecp-3.3.1_No_catlog.jar 如果有什么问题,可以再提出。 |
新版的catlog,schema的默认值是空的,将会从第一个连接上读取值并视作默认值,在这种情形下,如果这两个默认值还是空,那么就没有复位操作了。 新版还在测试中,过段时间会发布, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为业务需要,会基于参数变更connection的catalog。
默认不设置catalog,连接如下:
127.0.0.1:3306/?useUnicode=true&useSSL=false
在设置catalog后,beecp执行完SQL,关闭connection时,通过recycleSelf调用resetRawConn按照defCatalog进行复位。上述情况,在复位时,会抛出异常:java.sql.SQLException: Database can not be null
产生如下问题:
1、出于什么考虑,再会connection关闭后进行复位?
2、是否可以关闭该复位?
The text was updated successfully, but these errors were encountered: