From 333ee69f6300857a68dc5e4fec5fb579c61e3647 Mon Sep 17 00:00:00 2001 From: Julius de Bruijn Date: Fri, 30 Oct 2020 10:03:43 +0100 Subject: [PATCH] A test to reveal a bug with BigDecimal and PostgreSQL --- tests/postgres/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/postgres/types.rs b/tests/postgres/types.rs index 9526f357..93ac3976 100644 --- a/tests/postgres/types.rs +++ b/tests/postgres/types.rs @@ -395,6 +395,7 @@ test_type!(bigdecimal(Postgres, "1::numeric" == "1".parse::().unwrap(), "10000::numeric" == "10000".parse::().unwrap(), "0.1::numeric" == "0.1".parse::().unwrap(), + "0.01::numeric" == "0.01".parse::().unwrap(), "0.01234::numeric" == "0.01234".parse::().unwrap(), "12.34::numeric" == "12.34".parse::().unwrap(), "12345.6789::numeric" == "12345.6789".parse::().unwrap(),