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 92a40fb commit f4f6d87Copy full SHA for f4f6d87
tests/any/any.rs
@@ -43,7 +43,12 @@ async fn it_has_chrono() -> anyhow::Result<()> {
43
use sqlx_oldapi::types::chrono::NaiveDate;
44
assert_eq!(
45
NaiveDate::from_ymd_opt(2020, 1, 2).unwrap(),
46
- get_val::<NaiveDate>("CAST('2020-01-02' AS DATE)").await?
+ get_val::<NaiveDate>(if cfg!(feature = "sqlite") {
47
+ "'2020-01-02'" // SQLite does not have a DATE type
48
+ } else {
49
+ "CAST('2020-01-02' AS DATE)"
50
+ })
51
+ .await?
52
);
53
Ok(())
54
}
0 commit comments