Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4140: Documented the ORA-06552 error that can occur when a key…

…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...
commit 1e64f57683b9a521e9bfbb42ccc294c921926b25 1 parent 59cccd1
Ian Kelly authored January 28, 2010

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  docs/ref/databases.txt
8  docs/ref/databases.txt
@@ -608,6 +608,14 @@ Oracle imposes a name length limit of 30 characters. To accommodate this, the
608 608
 backend truncates database identifiers to fit, replacing the final four
609 609
 characters of the truncated name with a repeatable MD5 hash value.
610 610
 
  611
+When running syncdb, an ``ORA-06552`` error may be encountered if
  612
+certain Oracle keywords are used as the name of a model field or the
  613
+value of a ``db_column`` option.  Django quotes all identifiers used
  614
+in queries to prevent most such problems, but this error can still
  615
+occur when an Oracle datatype is used as a column name.  In
  616
+particular, take care to avoid using the names ``date``,
  617
+``timestamp``, ``number`` or ``float`` as a field name.
  618
+
611 619
 NULL and empty strings
612 620
 ----------------------
613 621
 

0 notes on commit 1e64f57

Please sign in to comment.
Something went wrong with that request. Please try again.