If we can not properly infer PreparedStatement bind in JdbcMapper, error out saying so

This commit is contained in:
Travis Burtrum 2017-06-02 00:43:32 -04:00
parent 8d9a01766f
commit f14b87203a

View File

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