提交 df34dee4 authored 作者: noelgrandin@gmail.com's avatar noelgrandin@gmail.com

remove DEFAULT_CONNECTION from thread-local when clearing

上级 2e659700
......@@ -180,10 +180,15 @@ public class Driver implements java.sql.Driver {
/**
* INTERNAL
* Sets, on a per-thread basis, the default-connection for user-defined functions.
*/
public static void setDefaultConnection(Connection c) {
if (c == null) {
DEFAULT_CONNECTION.remove();
} else {
DEFAULT_CONNECTION.set(c);
}
}
/**
* INTERNAL
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论