private LinkedHashSet<SqlParameter> parseForSqlParameters(ParsedSql parsedSql,Sql sql) throws Exception {
LinkedHashSet<SqlParameter> result = new LinkedHashSet<SqlParameter>();
long start = System.currentTimeMillis();
for(int i = 0; i < parsedSql.getParameterNames().size(); i++) {
String paramName = parsedSql.getParameterNames().get(i);
Column column = findColumnByParamName(parsedSql, sql, paramName);
if(column == null) {
column = specialParametersMapping.get(paramName);
if(column == null) {
//FIXME 不能猜测的column类型
column = new Column(null,JdbcType.UNDEFINED.TYPE_CODE,"UNDEFINED",paramName,0,0,false,false,false,false,null,null);
}
}
SqlParameter param = new SqlParameter(column);
param.setParamName(paramName);