提交 82a2a486 authored 作者: noelgrandin's avatar noelgrandin

Add sufficient ClientInfo support to our javax.sql.Connection implementation to…

Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
上级 2dabe8a4
......@@ -49,6 +49,7 @@ Change Log
</li><li>change the PageStore#changeCount field from an int to a long,
to cope with databases with very high transaction rates.
</li><li>Fix NPE when attempting to add foreign key reference to Table View.
</li><li>Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
</li></ul>
<h2>Version 1.3.172 (2013-05-25)</h2>
......
......@@ -1600,36 +1600,44 @@ public class JdbcConnection extends TraceObject implements Connection {
}
/**
* [Not supported] Set a client property.
* Set a client property.
*/
@Override
public void setClientInfo(String name, String value)
throws SQLClientInfoException {
checkClosed();
// we don't have any client properties, so just throw
throw new SQLClientInfoException();
}
/**
* [Not supported] Set the client properties.
* Set the client properties.
*/
@Override
public void setClientInfo(Properties properties) throws SQLClientInfoException {
checkClosed();
// we don't have any client properties, so just throw
throw new SQLClientInfoException();
}
/**
* [Not supported] Get the client properties.
* Get the client properties.
*/
@Override
public Properties getClientInfo() throws SQLClientInfoException {
throw new SQLClientInfoException();
checkClosed();
// we don't have any client properties, so return null
return null;
}
/**
* [Not supported] Set a client property.
* Set a client property.
*/
@Override
public String getClientInfo(String name) throws SQLException {
throw unsupported("clientInfo");
checkClosed();
// we don't have any client properties, so just throw
throw new SQLClientInfoException();
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论