We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3689578 commit dc88ab9Copy full SHA for dc88ab9
1 file changed
tests/any/any.rs
@@ -117,11 +117,13 @@ async fn it_has_json() -> anyhow::Result<()> {
117
async fn it_has_uuid() -> anyhow::Result<()> {
118
use sqlx_oldapi::types::Uuid;
119
#[cfg(feature = "sqlite")]
120
- let sql = "CAST('123e4567-e89b-12d3-a456-426614174000' AS TEXT)";
+ let sql = "x'123e4567e89b12d3a456426614174000'";
121
#[cfg(feature = "mssql")]
122
let sql = "CONVERT(uniqueidentifier, '123e4567-e89b-12d3-a456-426614174000')";
123
#[cfg(feature = "postgres")]
124
let sql = "CAST('123e4567-e89b-12d3-a456-426614174000' AS UUID)";
125
+ #[cfg(feature = "mysql")]
126
+ let sql = "UUID_TO_BIN('123e4567-e89b-12d3-a456-426614174000')";
127
assert_eq!(
128
Uuid::parse_str("123e4567-e89b-12d3-a456-426614174000")?,
129
get_val::<Uuid>(sql).await?
0 commit comments