Skip to content
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

当前版本的druid是否支持postgreSql的多schema场景? #893

Closed
dairymix opened this issue Jul 8, 2015 · 2 comments
Closed

当前版本的druid是否支持postgreSql的多schema场景? #893

dairymix opened this issue Jul 8, 2015 · 2 comments
Assignees

Comments

@dairymix
Copy link

dairymix commented Jul 8, 2015

我看代码发现DruidPooledConnection针对connection的实现中:
public void setSchema(String schema) throws SQLException
{
throw new SQLFeatureNotSupportedException();
}

public String getSchema() throws SQLException {
throw new SQLFeatureNotSupportedException();
}
这两个方法会通告特性不支持.
那么postgreSql下的多schema场景是否需要支持?有什么处理的办法么?

@ccwxl
Copy link

ccwxl commented Jul 23, 2019

可能是不支持 JDBC 4.1 的规范.

@lizongbo
Copy link
Collaborator

最新代码也不支持,需要加一下支持。

@lizongbo lizongbo self-assigned this Nov 20, 2023
lizongbo added a commit to lizongbo/druid that referenced this issue Nov 24, 2023
…#893

确实应该调用jdbc驱动的setSchema alibaba#5166 alibaba#3932 alibaba#3718 alibaba#893
setSchema 方法的调用是业务方决定的,且业务方使用的jdbc驱动已经支持该特性,druid不能阻拦其使用
lizongbo added a commit that referenced this issue Nov 24, 2023
确实应该调用jdbc驱动的setSchema #5166 #3932 #3718 #893
setSchema 方法的调用是业务方决定的,且业务方使用的jdbc驱动已经支持该特性,druid不能阻拦其使用
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants