From 38ecddd7976cf96642a937ab53ac132cfb51eb34 Mon Sep 17 00:00:00 2001 From: zjregee Date: Sun, 7 Jul 2024 21:03:00 +0800 Subject: [PATCH] fix float decode panic Signed-off-by: zjregee --- sqllogictest-engines/src/mysql.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sqllogictest-engines/src/mysql.rs b/sqllogictest-engines/src/mysql.rs index 4846744..ede425c 100644 --- a/sqllogictest-engines/src/mysql.rs +++ b/sqllogictest-engines/src/mysql.rs @@ -52,9 +52,8 @@ impl sqllogictest::AsyncDB for MySql { | "MEDIUMINT UNSIGNED" | "BIGINT UNSIGNED" => { row.try_get::(i).map(|v| v.to_string()) } - "FLOAT" | "DOUBLE" | "DECIMAL" => { - row.try_get::(i).map(|v| v.to_string()) - } + "FLOAT" => row.try_get::(i).map(|v| v.to_string()), + "DOUBLE" => row.try_get::(i).map(|v| v.to_string()), _ => { return Err(sqlx::Error::Decode( format!("Unsupported type: {}", type_info.name()).into(),