summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/ddl.py
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem@us.ibm.com>2016-10-10 11:33:21 -0400
committerMatt Riedemann <mriedem@us.ibm.com>2016-10-10 11:33:21 -0400
commit399fc99dfef72e87f432f8ff92580158ef648b12 (patch)
tree4de4847d32010d65b813ce124767be7a4f2b0c81 /lib/sqlalchemy/sql/ddl.py
parentb9d0e2d5c55f68193fae001bb553a51018ab8ed6 (diff)
downloadsqlalchemy-pr/312.tar.gz
Update the Column.nullable docstring for the primary_key=True casepr/312
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.
Diffstat (limited to 'lib/sqlalchemy/sql/ddl.py')
0 files changed, 0 insertions, 0 deletions