| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When using parepared statements, None values in collections were serialized as empty values (values with length == 0). This is unexpected and inconsistent - None values are serialized as NULLs (vlaues with length == -1) in other cases: - Statement arguments, both for simple and prepared statements - Collection elements in simple statement This commit fixes this weird behavior - now None values should be serialized as NULLs in all cases. It also adds an integration test that checks new behavior. Fixes https://datastax-oss.atlassian.net/jira/software/c/projects/PYTHON/issues/PYTHON-1355
|
I assume there is no interest in this PR, so closing. |
Sorry, something went wrong.
|
Sorry @Lorak-mmk , this one just slipped through the cracks. I'd be interested in taking a look at this but we're in something of a freeze right now waiting for this driver to be donated to the ASF so I'm trying to hold off on new commits until that's complete. When it is done I'd like to revisit this idea if you're open to it. Thanks! |
Sorry, something went wrong.
|
Ok, thanks for the info. Reopening. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When using parepared statements, None values in collections were serialized as empty values (values with length == 0). This is unexpected and inconsistent - None values are serialized as NULLs (vlaues with length == -1) in other cases:
This PR fixes this weird behavior - now None values should be serialized as NULLs in all cases. It also adds an integration test that checks new behavior.
Fixes https://datastax-oss.atlassian.net/jira/software/c/projects/PYTHON/issues/PYTHON-1355