mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-25 18:32:18 -05:00
If we can not properly infer PreparedStatement bind in JdbcMapper, error out saying so
This commit is contained in:
parent
8d9a01766f
commit
f14b87203a
@ -514,8 +514,9 @@ public class JdbcMapperProcessor extends AbstractProcessor {
|
|||||||
} else if (types.isAssignable(o, sqlArrayType)) {
|
} else if (types.isAssignable(o, sqlArrayType)) {
|
||||||
method = "Array";
|
method = "Array";
|
||||||
} else {
|
} else {
|
||||||
// probably won't get here ever, but just in case...
|
// shouldn't get here ever, if we do the types should be more specific
|
||||||
method = "Object";
|
processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, "@JdbcMapper.SQL could not properly infer PreparedStatement bind call for param", param);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
w.write("ps.set");
|
w.write("ps.set");
|
||||||
w.write(method);
|
w.write(method);
|
||||||
|
Loading…
Reference in New Issue
Block a user