Всем привет.
Пытаюсь прочитать данные из postgres, использую пакет postgres (про diesel знаю, но пока не хочу).
Строки читаются нормально.
Но при попытке чтения numeric, получаю ошибку: "error retrieving column open: error deserializing column 2: cannot convert between the Rust type `f64` and the Postgres type `numeric`"
Сам код:
for row in client.query(&sql, &[]).unwrap() {
println!("{:?}", row);
let tmp: f64 = row.get("open");
}
Как читать-то?