Skip to content

Commit 5970752

Browse files
authored
Update lib.rs
Change the validity probe to be SELECT 1; instead of empty query.
1 parent 449e031 commit 5970752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ where
6868
}
6969

7070
fn is_valid(&self, client: &mut Client) -> Result<(), Error> {
71-
client.simple_query("").map(|_| ())
71+
client.simple_query("SELECT 1;").map(|_| ())
7272
}
7373

7474
fn has_broken(&self, client: &mut Client) -> bool {

0 commit comments

Comments
 (0)