MikhailNazarov / ydb-rs-sqlx

Sqlx integration for YDB rust SDK
https://ydb.tech/
Apache License 2.0
2 stars 1 forks source link

Investigate about reorganize date(times) and timestamps #13

Open MikhailNazarov opened 2 weeks ago

MikhailNazarov commented 2 weeks ago

Error: ColumnDecode { index: ""updated_at"", source: "mismatched types; Rust type core::option::Option (as SQL type Timestamp) is not compatible with SQL type DateTime" }

MikhailNazarov commented 2 weeks ago

We should use CurrentUtcDateTime() instead of CurrentUtcDate(), because DateTime is not compartible with Date. And with rust type std::SystemTime you should use database type Timestamp.

That's how it works now. We need to think about it, maybe it's worth do it other way.