We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b4370f commit 1fa7150Copy full SHA for 1fa7150
1 file changed
src/lib.rs
@@ -161,7 +161,7 @@ impl r2d2::ManageConnection for SqliteConnectionManager {
161
}
162
163
fn is_valid(&self, conn: &mut Connection) -> Result<(), Error> {
164
- conn.execute_batch("").map_err(Into::into)
+ conn.execute_batch("SELECT 1;").map_err(Into::into)
165
166
167
fn has_broken(&self, _: &mut Connection) -> bool {
0 commit comments