This commit is contained in:
gwenn
2019-01-26 11:02:34 +01:00
parent e4c1f541ae
commit 4be7900bab
2 changed files with 13 additions and 5 deletions

View File

@@ -713,10 +713,13 @@ mod test {
})
.unwrap();
let res: bool = db.query_row(
"SELECT example(0, i) FROM (SELECT 0 as i UNION SELECT 1)",
NO_PARAMS,
|r| r.get(0)).unwrap();
let res: bool = db
.query_row(
"SELECT example(0, i) FROM (SELECT 0 as i UNION SELECT 1)",
NO_PARAMS,
|r| r.get(0),
)
.unwrap();
// Doesn't actually matter, we'll assert in the function if there's a problem.
assert!(res);
}