Skip to content

Commit

Permalink
Add test for select on blob type (#84)
Browse files Browse the repository at this point in the history
Now that the issue is resolved upstream we can add back the test

Signed-off-by: Pradeep Chhetri <[email protected]>

Signed-off-by: Pradeep Chhetri <[email protected]>
  • Loading branch information
chhetripradeep authored Sep 20, 2022
1 parent 61cfc9b commit b391831
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ DUCKDB_INCLUDE_DIR = /Users/wangfenjin/duckdb
all:
cargo test --features buildtime_bindgen --features modern-full -- --nocapture
cargo clippy --all-targets --workspace --features buildtime_bindgen --features modern-full -- -D warnings -A clippy::redundant-closure

test:
cargo test --features bundled --features modern-full -- --nocapture
4 changes: 2 additions & 2 deletions src/types/to_sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ mod test {
let id_vec = id.as_bytes().to_vec();
db.execute("INSERT INTO foo (id, label) VALUES (?, ?)", params![id_vec, "target"])?;

let mut stmt = db.prepare("SELECT id, label FROM foo")?;
let mut rows = stmt.query([])?;
let mut stmt = db.prepare("SELECT id, label FROM foo WHERE id = ?")?;
let mut rows = stmt.query(params![id_vec])?;
let row = rows.next()?.unwrap();
let found_id: Uuid = row.get_unwrap(0);
let found_label: String = row.get_unwrap(1);
Expand Down

0 comments on commit b391831

Please sign in to comment.