* fixed a minor backward compatibility bug.

This commit is contained in:
Heng Sin Low 2008-11-06 02:53:12 +00:00
parent 7cd0f53d0f
commit d3c57900f1
1 changed files with 13 additions and 0 deletions

View File

@ -89,6 +89,8 @@ public class StatementProxy implements InvocationHandler {
} else if (name.equals("commit") && (args == null || args.length == 0)) {
commit();
return null;
} else if (name.equals("getSql") && (args == null || args.length == 0)) {
return getSql();
}
Method m = p_stmt.getClass().getMethod(name, method.getParameterTypes());
@ -195,4 +197,15 @@ public class StatementProxy implements InvocationHandler {
m_conn.commit();
}
} // commit
/**
* Get Sql
* @return sql
*/
public String getSql()
{
if (p_vo != null)
return p_vo.getSql();
return null;
} // getSql
}