提交 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 ...@@ -49,6 +49,7 @@ Change Log
</li><li>change the PageStore#changeCount field from an int to a long, </li><li>change the PageStore#changeCount field from an int to a long,
to cope with databases with very high transaction rates. 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>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> </li></ul>
<h2>Version 1.3.172 (2013-05-25)</h2> <h2>Version 1.3.172 (2013-05-25)</h2>
......
...@@ -1600,36 +1600,44 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1600,36 +1600,44 @@ public class JdbcConnection extends TraceObject implements Connection {
} }
/** /**
* [Not supported] Set a client property. * Set a client property.
*/ */
@Override @Override
public void setClientInfo(String name, String value) public void setClientInfo(String name, String value)
throws SQLClientInfoException { throws SQLClientInfoException {
checkClosed();
// we don't have any client properties, so just throw
throw new SQLClientInfoException(); throw new SQLClientInfoException();
} }
/** /**
* [Not supported] Set the client properties. * Set the client properties.
*/ */
@Override @Override
public void setClientInfo(Properties properties) throws SQLClientInfoException { public void setClientInfo(Properties properties) throws SQLClientInfoException {
checkClosed();
// we don't have any client properties, so just throw
throw new SQLClientInfoException(); throw new SQLClientInfoException();
} }
/** /**
* [Not supported] Get the client properties. * Get the client properties.
*/ */
@Override @Override
public Properties getClientInfo() throws SQLClientInfoException { 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 @Override
public String getClientInfo(String name) throws SQLException { 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论