mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support dynamic preparedstatement.
This commit is contained in:
@@ -47,7 +47,7 @@ import com.alibaba.druid.proxy.jdbc.JdbcParameter.TYPE;
|
||||
*/
|
||||
public class PreparedStatementProxyImpl extends StatementProxyImpl implements PreparedStatementProxy {
|
||||
|
||||
protected final PreparedStatement statement;
|
||||
private PreparedStatement statement;
|
||||
protected final String sql;
|
||||
private JdbcParameter[] parameters = new JdbcParameter[16];
|
||||
private int parametersSize = 0;
|
||||
@@ -70,6 +70,11 @@ public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
|
||||
return paramMap;
|
||||
}
|
||||
|
||||
protected void setStatement(PreparedStatement statement) {
|
||||
super.statement = statement;
|
||||
this.statement = statement;
|
||||
}
|
||||
|
||||
void setParameter(int jdbcIndex, JdbcParameter parameter) {
|
||||
int index = jdbcIndex - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user