summaryrefslogtreecommitdiff
path: root/doc/build
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-12-28 16:37:54 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-12-28 16:37:54 -0500
commitcac7320eeb16e62f347dbf009a1b18edff7faa18 (patch)
treebece0cd0606d684b48be8c24237d6283955b62a6 /doc/build
parentd8bc6673c0bb34258bf4c54699ceede777664600 (diff)
downloadsqlalchemy-cac7320eeb16e62f347dbf009a1b18edff7faa18.tar.gz
- adjust the behavior of cast() to only provide a type for the bindparam()
if we are coercing straight from string. [ticket:2899] - rework the tests here to be individual
Diffstat (limited to 'doc/build')
-rw-r--r--doc/build/changelog/changelog_09.rst13
1 files changed, 5 insertions, 8 deletions
diff --git a/doc/build/changelog/changelog_09.rst b/doc/build/changelog/changelog_09.rst
index c18eedd73..5e4a5009c 100644
--- a/doc/build/changelog/changelog_09.rst
+++ b/doc/build/changelog/changelog_09.rst
@@ -60,14 +60,11 @@
The :func:`.cast` function, when given a plain literal value,
will now apply the given type to the given literal value on the
- bind parameter side according
- to the type given to the cast. This essentially replaces what would
- normally be the detected type of the literal value. This only
- takes effect if the auto-detected type of the literal value is either
- "nulltype" (e.g. couldn't detect)
- or a type that is of the same "affinity" as the cast type.
- The net change here is that the :func:`.cast` function includes more
- of the functionality already present in the :func:`.type_coerce` function.
+ bind parameter side according to the type given to the cast,
+ in the same manner as that of the :func:`.type_coerce` function.
+ However unlike :func:`.type_coerce`, this only takes effect if a
+ non-clauseelement value is passed to :func:`.cast`; an existing typed
+ construct will retain its type.
.. change::
:tags: bug, postgresql