diff --git a/tests/sqlite.rs b/tests/sqlite.rs index 688abed9..a801d369 100644 --- a/tests/sqlite.rs +++ b/tests/sqlite.rs @@ -37,6 +37,17 @@ async fn it_fails_to_parse() -> anyhow::Result<()> { Ok(()) } +#[cfg_attr(feature = "runtime-async-std", async_std::test)] +#[cfg_attr(feature = "runtime-tokio", tokio::test)] +async fn it_handles_empty_queries() -> anyhow::Result<()> { + let mut conn = new::().await?; + let affected = conn.execute("").await?; + + assert_eq!(affected, 0); + + Ok(()) +} + #[cfg_attr(feature = "runtime-async-std", async_std::test)] #[cfg_attr(feature = "runtime-tokio", tokio::test)] async fn it_executes() -> anyhow::Result<()> {