diff --git a/driver/src/conn.rs b/driver/src/conn.rs index 641e9e75e..41df3e338 100644 --- a/driver/src/conn.rs +++ b/driver/src/conn.rs @@ -191,17 +191,17 @@ pub trait Connection: DynClone + Send + Sync { } async fn begin(&self) -> Result<()> { - let _ = self.exec("BEGIN").await; + self.exec("BEGIN").await?; Ok(()) } async fn commit(&self) -> Result<()> { - let _ = self.exec("COMMIT").await; + self.exec("COMMIT").await?; Ok(()) } async fn rollback(&self) -> Result<()> { - let _ = self.exec("ROLLBACK").await; + self.exec("ROLLBACK").await?; Ok(()) } diff --git a/driver/tests/driver/common/mod.rs b/driver/tests/driver/common/mod.rs index 3e236be46..e7e066b06 100644 --- a/driver/tests/driver/common/mod.rs +++ b/driver/tests/driver/common/mod.rs @@ -12,4 +12,5 @@ // See the License for the specific language governing permissions and // limitations under the License. -pub static DEFAULT_DSN: &str = "databend://root:@localhost:8000/default?sslmode=disable"; +pub static DEFAULT_DSN: &str = + "databend://databend:databend@localhost:8000/default?sslmode=disable";