Skip to content

IndexedParams ,This class needs to be replaced with the following code, otherwise a null pointer error will be reported when adding in bulk #72

@heruyi-git

Description

@heruyi-git

IndexedParams(List<?> params) {
List tempParam = new ArrayList<>(params.size());
for (Object param : params) {
if (param == null){
param = "null";
}else if (param instanceof Number){
}else if (param instanceof String){
param = "'"+param+"'";
}else if (param instanceof Date){
param = "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(param) + "'";
}else{
}
tempParam.add(param);
}
this.params = new ArrayDeque<>(tempParam);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions