Skip to content

Commit

Permalink
Fix sorting of patch portion of version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Dec 2, 2024
1 parent db32f43 commit 521b83e
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 521b83e

Please sign in to comment.