#17957: ORM do not respect null=False if default db engine
interprets_empty_strings_as_nulls
----------------------------------------------+--------------------
Reporter: bhuztez | Owner: nobody
Type: Bug | Status: new
Component: Database layer (models, ORM) | Version: SVN
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
My settings.py looks like this
{{{#!python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
},
'other': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = (
'django.contrib.sites',
)
}}}
Run `python manage.py sql sites --database=other`
{{{#!sql
BEGIN;
CREATE TABLE "django_site" (
"id" integer NOT NULL PRIMARY KEY,
"domain" varchar(100) NOT NULL,
"name" varchar(50) NOT NULL
)
;
COMMIT;
}}}
Change default database engine to `django.db.backends.oracle`. Run again
`python manage.py sql sites --database=other`
{{{#!sql
BEGIN;
CREATE TABLE "django_site" (
"id" integer NOT NULL PRIMARY KEY,
"domain" varchar(100),
"name" varchar(50)
)
;
COMMIT;
}}}
Disclaimer: I do not have an oracle db. I actually change dummy backend's
feature.interprets_empty_strings_as_nulls to True, and set default db
engine to dummy.
--
Ticket URL: <https://code.djangoproject.com/ticket/17957>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.