* fixed a minor backward compatibility bug.
This commit is contained in:
parent
7cd0f53d0f
commit
d3c57900f1
|
@ -89,6 +89,8 @@ public class StatementProxy implements InvocationHandler {
|
||||||
} else if (name.equals("commit") && (args == null || args.length == 0)) {
|
} else if (name.equals("commit") && (args == null || args.length == 0)) {
|
||||||
commit();
|
commit();
|
||||||
return null;
|
return null;
|
||||||
|
} else if (name.equals("getSql") && (args == null || args.length == 0)) {
|
||||||
|
return getSql();
|
||||||
}
|
}
|
||||||
|
|
||||||
Method m = p_stmt.getClass().getMethod(name, method.getParameterTypes());
|
Method m = p_stmt.getClass().getMethod(name, method.getParameterTypes());
|
||||||
|
@ -195,4 +197,15 @@ public class StatementProxy implements InvocationHandler {
|
||||||
m_conn.commit();
|
m_conn.commit();
|
||||||
}
|
}
|
||||||
} // commit
|
} // commit
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Sql
|
||||||
|
* @return sql
|
||||||
|
*/
|
||||||
|
public String getSql()
|
||||||
|
{
|
||||||
|
if (p_vo != null)
|
||||||
|
return p_vo.getSql();
|
||||||
|
return null;
|
||||||
|
} // getSql
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue