mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-22 15:28:51 -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)) {
|
||||
method = "Array";
|
||||
} else {
|
||||
// probably won't get here ever, but just in case...
|
||||
method = "Object";
|
||||
// shouldn't get here ever, if we do the types should be more specific
|
||||
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(method);
|
||||
|
Loading…
Reference in New Issue
Block a user