diff --git a/postgres/Cargo.toml b/postgres/Cargo.toml index 7ffcecc4..66222188 100644 --- a/postgres/Cargo.toml +++ b/postgres/Cargo.toml @@ -46,7 +46,6 @@ quinn = { version = "0.11", features = ["ring"], optional = true } rustls-pemfile = { version = "2", optional = true } [dev-dependencies] -xitca-postgres = { version = "0.2", features = ["compat"] } xitca-postgres-codegen = "0.1" bb8 = "0.8.5" futures = { version = "0.3", default-features = false } diff --git a/postgres/src/statement.rs b/postgres/src/statement.rs index eab2c2c8..29fc9f8d 100644 --- a/postgres/src/statement.rs +++ b/postgres/src/statement.rs @@ -383,10 +383,7 @@ mod test { tokio::task::spawn(drv.into_future()); - "CREATE TEMPORARY TABLE foo (id SERIAL, name TEXT); INSERT INTO foo (name) VALUES ('alice'), ('bob'), ('charlie');" - .execute(&cli) - .await - .unwrap(); + std::path::Path::new("./samples/test.sql").execute(&cli).await.unwrap(); let stmt = Statement::named("SELECT id, name FROM foo ORDER BY id", &[]) .execute(&cli)