chaindexing-rs icon indicating copy to clipboard operation
chaindexing-rs copied to clipboard

Deserialization of timestamp fields fails

Open Jurshsmith opened this issue 1 year ago • 0 comments

Action: Investigate tokio-postgres.

Analysis: Timestamp fields should be encoded as serde::Value::String("\"<value>\"") -- the inner extra quotes are essential for serde to reach an agreement with chrono when deserializing. However, it seems tokio-postgres somehow gets rid of those extra quotes when converting a Row to its equivalent serde::Value.

Jurshsmith avatar Dec 30 '23 08:12 Jurshsmith