We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9d9c9 commit c267596Copy full SHA for c267596
rust/cubesql/pg-srv/src/values/timestamp.rs
@@ -205,7 +205,7 @@ impl FromProtocolValue for TimestampValue {
205
let unix_nano = pg_base_date_epoch()
206
.and_utc()
207
.timestamp_nanos_opt()
208
- .unwrap()
+ .expect("Unable to get timestamp nanos for pg_base_date_epoch")
209
+ (pg_microseconds * 1_000);
210
211
Ok(TimestampValue::new(unix_nano, None))
0 commit comments