Running the schema tests, test_check_constraints skips it if the backend
doesn't supports check constraints, but it seem like is trying to test
column based check constraints. In my case Firebird just support table
based check constraints, so the test_check_constraints fails.
My proposal is to change the supports_check_constraints name to something
more explicit like supports_column_based_check_constraints.
--
Ticket URL: <https://code.djangoproject.com/ticket/22825>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: andrewgodwin (added)
* needs_better_patch: => 0
* component: Uncategorized => Database layer (models, ORM)
* needs_tests: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
Comment:
It was added in [ca9c3cd3] by Andrew. CCing him for his thoughts.
--
Ticket URL: <https://code.djangoproject.com/ticket/22825#comment:1>
Comment (by andrewgodwin):
Yes, it is only for column-based check constraints (the only type Django
uses) - it's for things like PositiveIntegerField's check that `>= 0` and
stuff like that.
I'm fine with renaming it.
--
Ticket URL: <https://code.djangoproject.com/ticket/22825#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In 82c935d44cac6f041628fff4f32d1efdde96e720:
Renamed DatabaseFeature.supports_check_constraints to
supports_column_check_
Thanks maxi for the suggestion.
--
Ticket URL: <https://code.djangoproject.com/ticket/22825#comment:3>
Comment (by timo):
In dc7d0f50e22bc52bc4656879452c482394347b75:
[1.7.x] Renamed DatabaseFeature.supports_check_constraints to
supports_colum
Thanks maxi for the suggestion.
Backport of 82c935d44c from master
--
Ticket URL: <https://code.djangoproject.com/ticket/22825#comment:4>