* minor - null checking.
This commit is contained in:
parent
1770228900
commit
19f6725583
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue