Add missing datetime prefix. ()

This commit is contained in:
Mees Delzenne 2024-06-21 23:32:41 +02:00 committed by GitHub
parent a82bb76aba
commit 4148aef961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions
core/src/sql
lib/tests

View file

@ -95,7 +95,7 @@ impl Datetime {
impl Display for Datetime {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
Display::fmt(&quote_str(&self.to_raw()), f)
write!(f, "d{}", &quote_str(&self.to_raw()))
}
}

View file

@ -1302,7 +1302,7 @@ async fn select_with_datetime_value() -> Result<(), Error> {
plan: {
index: 'createdAt',
operator: '=',
value: '2023-12-25T17:13:01.940183014Z'
value: d'2023-12-25T17:13:01.940183014Z'
},
table: 'test_user'
},
@ -1324,7 +1324,7 @@ async fn select_with_datetime_value() -> Result<(), Error> {
let val = Value::parse(
r#"[
{
"created_at": "2023-12-25T17:13:01.940183014Z",
"created_at": d"2023-12-25T17:13:01.940183014Z",
"id": test_user:1
}
]"#,