--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/201406130117.32421.shai%40platonix.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAGdCwBtVv4KUsdiOe9-fRxQpxQuQ1vKwg1Pc9hvp-0Suv3%3DX0w%40mail.gmail.com.
It introspect Boolean field as SmallIntegerField but in the test case if can_introspect_boolean_field=False then it checks only for IntegerField. By including introspect_boolean_field_as_smallInteger and introspect_boolean_field_as_Integer feature flag can eliminate this problem.
> Should we eliminate all the `else:` clauses of tests controlled by `if
> connection.features.can_introspect_xxx:`? If the backend can't introspectI think that is going too far in the other direction -- specifically, in the
> something properly, we don't care that much about what it introspects
> instead.
case of parameters. As a backend maintainer, if I couldn't introspect
NullBooleanField, I think I'd still like to verify that I get a BooleanField.
If I can't get the right length, I still want to know it's a CharField.
In that spirit, Rahul (and Michael), I think we should just change the test to
allow for either IntegerField or SmallIntegerField when not
can_introspect_boolean_field.
Right -- within the above, IMO.
>
> Backwards-compatibility concerns are minimal. I don't think it's a big deal
> if the output of inspectdb changes accidentally for a core backend for a
> field that isn't correctly inspected anyway.
Shai.
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/201406171549.08377.shai%40platonix.com.
DB2 backend can introspect the nullability correctly, but it can't introspect BooleanField.
It introspect Boolean field as SmallIntegerField but in the test case if can_introspect_boolean_field=False then it checks only for IntegerField. By including introspect_boolean_field_as_smallInteger and introspect_boolean_field_as_Integer feature flag can eliminate this problem.