From 31e3a7db42f5ccbda47b62d0f0d25afd7032059d Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 3 Jan 2021 12:36:55 +0100 Subject: [PATCH] Update write_decimal max string length (#73) --- src/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.rs b/src/connection.rs index e81571a..64c11c8 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -223,7 +223,7 @@ impl Connection { use std::io::Write; // Convert the value to a string - let mut buf = [0u8; 12]; + let mut buf = [0u8; 20]; let mut buf = Cursor::new(&mut buf[..]); write!(&mut buf, "{}", val)?;