diff options
author | Teddy Wing | 2022-03-15 21:08:32 +0100 |
---|---|---|
committer | Teddy Wing | 2022-03-15 21:08:32 +0100 |
commit | daaab78f45dee52e6950e21cfd4b653cff778a11 (patch) | |
tree | 524d4d53c2e3e99b9ba82f2008b92fe047fcbff1 /src/yaml/sql.rs | |
parent | 5b9fdb3b8917253242875ef30f6b13a064a224ae (diff) | |
download | yaqlite-daaab78f45dee52e6950e21cfd4b653cff778a11.tar.bz2 |
select(): Add a test that invokes the function and prints the result
It turns out the previous code failed with error:
thread 'select::tests::select_extracts_a_database_record_as_yaml'
panicked at 'called `Result::unwrap()` on an `Err` value:
SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("near
\":table\": syntax error"))', src/select.rs:11:9
Seems that I can't use named parameters to pass the table name to
`FROM`. Use string formatting for that instead.
Converted the named parameter array to a `rusqlite::named_params!` macro
when I read about it, as that seems a bit more concise.
Diffstat (limited to 'src/yaml/sql.rs')
0 files changed, 0 insertions, 0 deletions