Skip to content

Commit

Permalink
Fixed #4140: Documented the ORA-06552 error that can occur when a key…
Browse files Browse the repository at this point in the history
…word is used as a field name in the Oracle notes.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
nightflyerkilo committed Jan 28, 2010
1 parent 59cccd1 commit 1e64f57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/ref/databases.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -608,6 +608,14 @@ Oracle imposes a name length limit of 30 characters. To accommodate this, the
backend truncates database identifiers to fit, replacing the final four backend truncates database identifiers to fit, replacing the final four
characters of the truncated name with a repeatable MD5 hash value. characters of the truncated name with a repeatable MD5 hash value.


When running syncdb, an ``ORA-06552`` error may be encountered if
certain Oracle keywords are used as the name of a model field or the
value of a ``db_column`` option. Django quotes all identifiers used
in queries to prevent most such problems, but this error can still
occur when an Oracle datatype is used as a column name. In
particular, take care to avoid using the names ``date``,
``timestamp``, ``number`` or ``float`` as a field name.

NULL and empty strings NULL and empty strings
---------------------- ----------------------


Expand Down

0 comments on commit 1e64f57

Please sign in to comment.