List<DbAttribute> attributes = query.getDbAttributes();
int len = attributes.size();
DbAttributeBinding[] bindings = new DbAttributeBinding[len];
for (int i = 0; i < len; i++) {
DbAttribute a = attributes.get(i);
<BUG>String typeName = TypesMapping.getJavaBySqlType(a.getType());
ExtendedType extendedType = adapter.getExtendedTypes().getRegisteredType(typeName);
bindings[i] = new DbAttributeBinding(a, extendedType);
if (includeInBatch(a)) {
bindings[i].include(1, null);
</BUG>
} else {

List<DbAttribute> attributes = query.getDbAttributes();
int len = attributes.size();
DbAttributeBinding[] bindings = new DbAttributeBinding[len];
for (int i = 0; i < len; i++) {
DbAttribute a = attributes.get(i);
bindings[i] = new DbAttributeBinding(a);
if (includeInBatch(a)) {
bindings[i].include(1, null, null);
} else {
