fritz
06/23/2020, 1:50 PMKyle
06/24/2020, 2:51 AMfritz
06/24/2020, 4:15 PMSPLIT
or REGEX_SPLIT
if the semver is non-traditional) with queries like:
SELECT
'true' AS iterm_vulnerable,
path AS install_path,
last_opened_time,
CAST(SPLIT(bundle_short_version, ".", 0)AS int) AS bsv_major,
CAST(SPLIT(bundle_short_version, ".", 1)AS int) AS bsv_minor,
CAST(SPLIT(bundle_short_version, ".", 2)AS int) AS bsv_patch
FROM apps
WHERE bundle_identifier = 'com.googlecode.iterm2'
AND (
(bsv_major < 3)
OR (bsv_major = 3 AND bsv_minor < 3)
OR (bsv_major = 3 AND bsv_minor = 3 AND bsv_patch < 6)
);
Kyle
06/26/2020, 2:46 AM