diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-29 10:50:44 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-29 10:54:12 -0500 |
commit | bb338b91752f4f758edd9b2549a228e891596ae0 (patch) | |
tree | e92e30b621c41bf4ce706cb04c90f99cc6fa8cd9 /lib/sqlalchemy/dialects/mysql/pyodbc.py | |
parent | 06b0892da049a995ee4cd1e7cc3c1eb68f3dde64 (diff) | |
download | sqlalchemy-bb338b91752f4f758edd9b2549a228e891596ae0.tar.gz |
Gracefully degrade for SQLite JSON receiving direct numeric value
Fixed issue to workaround SQLite's behavior of assigning "numeric" affinity
to JSON datatypes, first described at :ref:`change_3850`, which returns
scalar numeric JSON values as a number and not as a string that can be JSON
deserialized. The SQLite-specific JSON deserializer now gracefully
degrades for this case as an exception and bypasses deserialization for
single numeric values, as from a JSON perspective they are already
deserialized.
Also adds a combinatoric fixture for JSON single values within
the dialect-general test suite.
Fixes: #5014
Change-Id: Id38221dce1271fec527ca198b23908547b25d8a0
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/pyodbc.py')
0 files changed, 0 insertions, 0 deletions