* minor - null checking.

This commit is contained in:
Heng Sin Low 2008-03-19 04:54:35 +00:00
parent 1770228900
commit 19f6725583
1 changed files with 5 additions and 2 deletions

View File

@ -567,7 +567,7 @@ public class Trx implements VetoableChangeListener
/** /**
* *
* @param name * @param name
* @return * @return Savepoint
* @throws SQLException * @throws SQLException
*/ */
public Savepoint setSavepoint(String name) throws SQLException { public Savepoint setSavepoint(String name) throws SQLException {
@ -581,7 +581,10 @@ public class Trx implements VetoableChangeListener
getConnection(); getConnection();
if(m_connection != null) { if(m_connection != null) {
return m_connection.setSavepoint(name); if (name != null)
return m_connection.setSavepoint(name);
else
return m_connection.setSavepoint();
} else { } else {
return null; return null;
} }