]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
attempt to clarify sentinel mismatch message
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 May 2023 23:09:31 +0000 (19:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 May 2023 23:09:31 +0000 (19:09 -0400)
Fixes: #9822
Change-Id: Idd5d62e14e3018da939a985a306591d6898a397f

lib/sqlalchemy/engine/default.py

index 48f5de725ffb7a4c511fb879e6e35b35a7cfbcf9..0d61e2a9bc4865c4f395c3bfcb1a6cca943163bb 100644 (file)
@@ -904,8 +904,11 @@ class DefaultDialect(Dialect):
                             "found. "
                             "There may be a mismatch between the datatype "
                             "passed to the DBAPI driver vs. that which it "
-                            "returns in a result row.  Try using a different "
-                            "datatype, such as integer"
+                            "returns in a result row.  Ensure the given "
+                            "Python value matches the expected result type "
+                            "*exactly*, taking care to not rely upon implicit "
+                            "conversions which may occur such as when using "
+                            "strings in place of UUID or integer values, etc. "
                         ) from ke
 
                     result.extend(ordered_rows)