Skip to content

Commit 2043d45

Browse files
committed
Fix SQL query
1 parent 5dbd676 commit 2043d45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/db/add_package.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn add_package_into_database(conn: &Connection,
8888
$8, test_status = $9, license = $10, repository_url = $11, \
8989
homepage_url = $12, description = $13, description_long = $14, \
9090
readme = $15, authors = $16, keywords = $17, have_examples = $18, \
91-
downloads = $19, files = $20, doc_targets = $21, is_library = $22 \
91+
downloads = $19, files = $20, doc_targets = $21, is_library = $22, \
9292
doc_rustc_version = $23 \
9393
WHERE crate_id = $1 AND version = $2",
9494
&[&crate_id,
@@ -112,6 +112,7 @@ pub fn add_package_into_database(conn: &Connection,
112112
&downloads,
113113
&files,
114114
&doc_targets.to_json(),
115+
&is_library,
115116
&res.rustc_version]));
116117
rows.get(0).get(0)
117118
}

0 commit comments

Comments
 (0)