Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heruyi-git opened this issue Jul 30, 2024 · 0 comments

Comments

@heruyi-git
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant