[Sqlalchemy-commits] commit/sqlalchemy: mriedem: Update the Column.nullable docstring for the prima
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2016-10-10 16:30:13
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/a4a7880f37d9/ Changeset: a4a7880f37d9 Branch: rel_1_0 User: mriedem Date: 2016-10-10 16:28:54+00:00 Summary: Update the Column.nullable docstring for the primary_key=True case While reviewing a change that created a new table, the primary_key column value was set to True but nullable was not explicitly set, which led to some confusion over the default behavior for the nullable column value when setting a primary_key. Looking at the docs it's not clear, but the code shows that if nullable is not specified, then nullable = not primary_key, so nullable defaults to False when primary_key is True. This patch adds a simple clarification to the docs so people don't have to check the code. Change-Id: I8553339d56fbae11370c7c6af6d8d4723163be1c Pull-request: https://github.com/zzzeek/sqlalchemy/pull/312 (cherry picked from commit 4b94ee113baab901aee881ad94851587c912f785) Affected #: 1 file Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |