Commits

Michael Manfre committed 9620a5a

Added note about case sensitivity of db_column names when using `raw_callproc`

Comments (0)

Files changed (3)

docs/datatypes.txt

 This is a ``django.db.models.ForeignKey`` that should be used to reference
 either a ``BigAutoField`` or a ``BigIntegerField``.
 
-.. note:
+.. note::
     If your (legacy) database using bigints for primary keys, then you'll 
     need to replace any introspected ``ForeignKey`` fields with 
     ``BigForeignKey`` for things to work as expected.
 - smalldatetime
 - smallmoney
 - tinyint
-- real
+- real

docs/settings.txt

 When a `USER`_ is defined, this field should be the plain text password 
 to use when authenticating.
 
-.. note: 
+.. note::
     Any user or service that can read the configuration file can 
     will be able to see the plain-text password. Trusted connections are 
     recommended.
         sproc_params = [1, 2, 3]
         MyModel.objects.raw_callproc('uspGetMyModels', sproc_params)
 
+.. note::
+
+    The db_column name for the field must match the case of the database field as returned by
+    the stored procedure, or the value will not be populated and will get fetched by the ORM
+    when the field is later accessed.
+
+
 .. versionadded:: 1.2
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.