Various Derby URLs fail in core.jdbc/connection
还没有人认领这个 Issue。
评估
调研方向
从 core.jdbc/connection 入口开始,复现 issue 中显示的 Derby URL,包括带有特殊字符的密码和内存数据库 URL。跟踪原始 JDBC 字符串在 DriverManager 接收之前是如何处理的;完成标准是两个 URL 都能成功连接,而不要求调用方自行创建连接。
由索引模型根据 Issue 内容生成。
描述
e.g.
user=> (with-open [conn (jdbc/connection "derby:/path/to/db;user=dot;password=D^1@?pw*qwK")] (jdbc/execute conn "insert into foo values ('hello')"))
URISyntaxException Illegal character in path at index 37: derby:/path/to/db;user=dot;password=D^9@?pw*qwK java.net.URI$Parser.fail (URI.java:2848)
user=> (with-open [conn (jdbc/connection "derby:memory:derby2pg;create=true")] "create table foo(bar varchar(10))")
SQLException No suitable driver found for jdbc:derby:// java.sql.DriverManager.getConnection (DriverManager.java:689)
Both of these urls work fine e.g.
user=> (with-open [conn (DriverManager/getConnection "jdbc:derby:/path/to/db;user=dot;password=D^9@?pw*qwK")] )
nil
user=> (with-open [conn (DriverManager/getConnection "jdbc:derby:memory:foobacle;create=true")] )
nil
In the first case, it looks like the code that attempts to make the connection is passing the string to java's URI class and fails because of some character in the password. This isn't that big of a deal for me to work around, because I can create the connections with DriverManager and just pass them on to the library. However, it seems like rather than forcing users of the library to do that, the library should not try to build a URI out of the raw string and simply create the connection based on the raw string.
- 主要语言
- Clojure
- 星标
- 106
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
funcool/clojure.jdbc 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
funcool/clojure.jdbc#46 ·
-
难度 3/5 1-2 天 新手友好度 35/100
funcool/clojure.jdbc#44 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 28/100
funcool/clojure.jdbc#43 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 45/100
funcool/clojure.jdbc#40 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
funcool/clojure.jdbc#38 · 4 个 reaction ·
查看 funcool/clojure.jdbc 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
clojure-emacs/cider#4203 ·
-
.Team/QueryingPlatform Priority:P2
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
clj-commons/antq#329 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 1/5 1 小时以内 新手友好度 90/100