Re: [Django] #4140: oracle: manage.py syncdb fails with ORA-06552 when a fieldname is a keyword

17 views
Skip to first unread message

Django

unread,
Nov 24, 2015, 2:11:17 PM11/24/15
to django-...@googlegroups.com
#4140: oracle: manage.py syncdb fails with ORA-06552 when a fieldname is a keyword
-------------------------------------+-------------------------------------
Reporter: frank.hoffsummer@… | Owner:
Type: Bug | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: oracle Oracle | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by auvipy):

Replying to [comment:18 collinanderson]:

since syncdb is removed from django, is the issue still valid?

--
Ticket URL: <https://code.djangoproject.com/ticket/4140#comment:19>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 24, 2015, 2:17:29 PM11/24/15
to django-...@googlegroups.com
#4140: oracle: manage.py syncdb fails with ORA-06552 when a fieldname is a keyword
-------------------------------------+-------------------------------------
Reporter: frank.hoffsummer@… | Owner:
Type: Bug | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: oracle Oracle | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by timgraham):

Likely the same issue applies to migrate, but it will need to be checked.

--
Ticket URL: <https://code.djangoproject.com/ticket/4140#comment:20>

Django

unread,
Oct 2, 2022, 3:25:34 PM10/2/22
to django-...@googlegroups.com
#4140: oracle: manage.py syncdb fails with ORA-06552 when a fieldname is a keyword
-------------------------------------+-------------------------------------
Reporter: frank.hoffsummer@… | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: dev
(models, ORM) |

Severity: Normal | Resolution:
Keywords: oracle Oracle | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* component: Core (Management commands) => Database layer (models, ORM)


--
Ticket URL: <https://code.djangoproject.com/ticket/4140#comment:21>

Django

unread,
Feb 8, 2023, 11:22:03 AM2/8/23
to django-...@googlegroups.com
#4140: oracle: manage.py syncdb fails with ORA-06552 when a fieldname is a keyword
-------------------------------------+-------------------------------------
Reporter: frank.hoffsummer@… | Owner: Kabir
| Alkasim
Type: Bug | Status: assigned

Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: oracle Oracle | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Kabir Alkasim):

* status: new => assigned
* cc: Kabir Alkasim (added)
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
* easy: 0 => 1
* owner: (none) => Kabir Alkasim
* needs_docs: 0 => 1
* ui_ux: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/4140#comment:22>

Django

unread,
Feb 8, 2023, 1:00:40 PM2/8/23
to django-...@googlegroups.com
#4140: oracle: manage.py syncdb fails with ORA-06552 when a fieldname is a keyword
-------------------------------------+-------------------------------------
Reporter: frank.hoffsummer@… | Owner: Kabir
| Alkasim
Type: Bug | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: oracle Oracle | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
* easy: 1 => 0
* needs_docs: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/4140#comment:23>

Django

unread,
Oct 24, 2025, 11:38:03 AM10/24/25
to django-...@googlegroups.com
#4140: oracle: manage.py syncdb fails with ORA-06552 when a fieldname is a keyword
-------------------------------------+-------------------------------------
Reporter: frank.hoffsummer@… | Owner: (none)
Type: Bug | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: oracle Oracle | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* resolution: => invalid
* stage: Accepted => Unreviewed
* status: new => closed

Comment:

I've tried to create a model with the `timestamp` field and all field
names are correctly quoted:
{{{
$ python manage.py makemigrations
Migrations for 'test_one':
test_one/migrations/0001_initial.py
+ Create model LogMessage
$ python manage.py sqlmigrate test_one 0001
--
-- Create model LogMessage
--
CREATE TABLE "TEST_ONE_LOGMESSAGE" ("ID" NUMBER(19) GENERATED BY DEFAULT
ON NULL AS IDENTITY NOT NULL PRIMARY KEY, "TIMESTAMP" TIMESTAMP NOT NULL,
"LEVEL" NUMBER(11) NOT NULL, "MESSAGE" NCLOB NULL);

$ python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions, test_one
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying sessions.0001_initial... OK
Applying test_one.0001_initial... OK
}}}

Moreover the `timestamp` field appears multiple times in our current test
suite. As far as I'm aware, this can be closed as invalid, especially that
we no longer (924a89e135fe54bc7622aa6f03405211e75c06e9) create triggers
internally.
--
Ticket URL: <https://code.djangoproject.com/ticket/4140#comment:22>
Reply all
Reply to author
Forward
0 new messages