summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-08-30 18:06:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-08-30 18:06:46 -0400
commit888f112b78e1cabc73eb410ecd8133df7b5cb957 (patch)
treec687a5a86f36f74d09ddcc1b5c43d56956835431 /doc
parent22396493b26f18780eb51fce874dd2435a83a0e5 (diff)
downloadsqlalchemy-888f112b78e1cabc73eb410ecd8133df7b5cb957.tar.gz
Enable native boolean for SQL Server
SQL Server supports what SQLAlchemy calls "native boolean" with its BIT type, as this type only accepts 0 or 1 and the DBAPIs return its value as True/False. So the SQL Server dialects now enable "native boolean" support, in that a CHECK constraint is not generated for a :class:`.Boolean` datatype. The only difference vs. other native boolean is that there are no "true" / "false" constants so "1" and "0" are still rendered here. Tests are implicit in the existing suites. Change-Id: I75bbcd549884099fb1a177e68667bf880c40fa7c Fixes: #4061
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/unreleased_12/4061.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_12/4061.rst b/doc/build/changelog/unreleased_12/4061.rst
new file mode 100644
index 000000000..63d6b9eb7
--- /dev/null
+++ b/doc/build/changelog/unreleased_12/4061.rst
@@ -0,0 +1,13 @@
+.. change::
+ :tags: bug, mssql
+ :tickets: 4061
+
+ SQL Server supports what SQLAlchemy calls "native boolean"
+ with its BIT type, as this type only accepts 0 or 1 and the
+ DBAPIs return its value as True/False. So the SQL Server
+ dialects now enable "native boolean" support, in that a
+ CHECK constraint is not generated for a :class:`.Boolean`
+ datatype. The only difference vs. other native boolean
+ is that there are no "true" / "false" constants so "1" and
+ "0" are still rendered here.
+