Skip to content

Commit

Permalink
Fix sorting of patch version numbers in crates.io metadata retrieval (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett authored Dec 2, 2024
1 parent f03782a commit 5fdd43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ pub fn get_metadata_from_cratesio_statement(
FROM ( \
SELECT version_id, license, major, \
CAST(SUBSTR(minor_and_patch,0,second_point) AS INTEGER) minor, \
SUBSTR(minor_and_patch,second_point+1) patch \
CAST(SUBSTR(minor_and_patch,second_point+1) AS INTEGER) patch \
FROM ( \
SELECT version_id, license, major, minor_and_patch, \
INSTR(minor_and_patch, '.') second_point \
Expand Down

0 comments on commit 5fdd43f

Please sign in to comment.