Opened 17 years ago
Last modified 17 years ago
#5219 closed
Problems using syncdb with Oracle 10g - strange field names and null = false ignored — at Version 1
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Hello
When syncdbing the following model :
class IdentificationConfidence(models.Model): identification_confidence = models.CharField("how confident the observer is", max_length = 20, null = False) class Meta: app_label = 'interaction' def __unicode__(self): return self.identification_confidence
I get the following table produced:
INTERACTION_IDENTIFICATION8A86
with fields ID (PK) and
IDENTIFICATION_CONFIDENCE NVARCHAR2(20) Nullable = Yes
Syncdb seems to be ignoring null = false and providing a strange table name
Thanks
Catriona
NB I didn't type the the question marks into my issue - they just appeared and it was __unicode__
Change History (1)
comment:1 by , 17 years ago
Description: | modified (diff) |
---|---|
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
(Fixed wiki formatting in description.)
The modified table name is nothing to worry about. There's a maximum length on table names in Oracle, so we truncate them and a unique hash to the end.
The other bit (ignore null=False) is something I'll let the Oracle maintainers worry about.