Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upProblems debugging SQL when using serde_json::Value and/or uuid::Uuid #1126
Comments
This comment has been minimized.
|
Yeah, this won't be an issue anymore with the new The error is basically saying that rust doesn't know how to serialize the Here is what it would look like (I only kept UPDATE \"users\" SET \"role_id\" = $1 WHERE \"users\".\"id\" = $2 -- binds: [Uuid(\"5487ef73-fe8a-47d0-b573-c2c13a05ae47\"), Uuid(\"91e63d03-d4fe-40ea-97da-392c96c4cf11\")] |
Eijebong
closed this
Aug 23, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bcmyers commentedAug 23, 2017
•
edited
Setup
Versions
--chrono: 0.4.0
--serde_json: 1.0.2
--uuid: 0.5.1
Feature Flags
Problem Description
It seems you are deprecating the
debug_sql!macro in favor of adebug_queryfunction; so perhaps this won't be an issue for long or is in fact no longer an issue.That said, while running 0.15.2, it appears I'm unable to use
debug_sql!with a struct that includes fields of typeserde_json::Valueand/oruuid::Uuid.More specifically, when I try this:
I get the following errors:
Just filing this as an issue so that when you update the code base to use
debug_queryinstead ofdebug_sql!you don't forget to test against feature types such asserde_json::Valueanduuid::Uuid.Thanks!
Checklist