From 1d66a4772da31f1aa0f5e06ae829926f39049940 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 4 Apr 2022 16:59:42 +0100 Subject: [PATCH] Ensure correct ordering of values in datastore --- lib/src/sql/value/value.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/sql/value/value.rs b/lib/src/sql/value/value.rs index f95bc0bf..e19e096f 100644 --- a/lib/src/sql/value/value.rs +++ b/lib/src/sql/value/value.rs @@ -105,8 +105,8 @@ pub enum Value { True, Number(Number), Strand(Strand), - Datetime(Datetime), Duration(Duration), + Datetime(Datetime), Array(Array), Object(Object), Geometry(Geometry), @@ -867,8 +867,8 @@ impl Serialize for Value { Value::None => s.serialize_unit_variant("Value", 0, "None"), Value::Void => s.serialize_unit_variant("Value", 1, "Void"), Value::Null => s.serialize_unit_variant("Value", 2, "Null"), - Value::True => s.serialize_unit_variant("Value", 3, "True"), - Value::False => s.serialize_unit_variant("Value", 4, "False"), + Value::False => s.serialize_unit_variant("Value", 3, "False"), + Value::True => s.serialize_unit_variant("Value", 4, "True"), Value::Number(v) => s.serialize_newtype_variant("Value", 5, "Number", v), Value::Strand(v) => s.serialize_newtype_variant("Value", 6, "Strand", v), Value::Duration(v) => s.serialize_newtype_variant("Value", 7, "Duration", v),