alibaba / druid

阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
https://github.com/alibaba/druid/wiki
Apache License 2.0
27.98k stars 8.59k forks source link

希望能支持连接SAP HANA #3308

Open hug3id opened 5 years ago

hug3id commented 5 years ago

版本:druid-1.1.16 在druid中配置hana连接字符串,在创建连接时报错: com.alibaba.druid.util.JdbcUtils:getDriverClassName unknown jdbc driver : jdbc:sap://xxxxxx

经过验证,修改以下三个地方即可支持: 在com.alibaba.druid.util.JdbcUtils:getDriverClassName中增加: if (rawUrl.startsWith("jdbc:sap:")) { return "com.sap.db.jdbc.Driver"; }

在com.alibaba.druid.util.JdbcUtils:getDbType中增加: if (rawUrl.startsWith("jdbc:sap:")) { return "hdb"; }

在META-INF\druid-driver.properties中增加: jdbc:sap:=com.sap.db.jdbc.Driver

hszhsz commented 4 years ago

这个问题没修么

yangjiajun2014 commented 3 years ago

+1.Hope u can support this.

NoUltimate commented 3 years ago

+1