Added
select top N ...as a synonym forlimit N
Changed
- Matroska and WebM metadata is behind the
mkvbuild feature, enabled by default. - The
update-notificationsbuild feature is no longer enabled by default. - Column aliases are no longer accepted after
WHEREandHAVINGconditions - Subquery columns are named after their query in output headers and error messages instead of a hash
DISTINCTis rejected with a hint instead of being read as a column named "distinct"- A doubled quote inside a quoted string (
'it''s') is a literal quote - Missing numeric, date and boolean values are written as
nullin JSON output - Dates and times are handled by
jiffinstead ofchrono - Several hash columns selected together (
sha1, sha256, sha512, sha3) are computed in one read of the file width,heightanddurationof an MP4 file come from a single parse of the file
Fixed
- Unterminated or mismatched subquery parentheses are rejected instead of silently closed
- Operators such as
INandBETWEENwork after a subquery in theSELECTlist - A correlated subquery in a grouped query may only read grouping columns of the outer row
INTOinside a subquery is rejected with a clear messageEXISTSwith a doubly parenthesized subquery evaluates the subquery instead of being always true- An invalid regular expression literal is reported once when the query is parsed instead of per file
- A negative operand written with a space after the minus sign (
size > - 1) is parsed as a number - An aggregate function in
WHEREis rejected instead of silently matching nothing GROUP BYandORDER BYwithout an expression are rejected- A column alias may be referenced in the
SELECTlist before the column that declares it - Division by a literal zero is rejected when the query is parsed instead of per file
- A date literal with an impossible month (
2020-13-01) is rejected instead of being read as arithmetic - Nested aggregate functions (
count(count(*))) are rejected ASwithout an alias, or an alias inside parentheses, is rejected instead of being ignored- Two search roots with the same alias are rejected
- An invalid literal unit, day count, precision or position argument of a date or string function is reported once when the query is parsed instead of per file
NOTwithout a following operator (where is_file not) is rejected instead of being ignored- A column name used as a function (
sha1(name)) is rejected instead of being read as two columns NOT INno longer accepts a row when the list or subquery contains a NULL member and nothing matches- Numeric functions such as
ABS,GREATESTandHEXread the byte count offsizeinstead of its formatted text - A relative date such as
1 year agono longer fails when it lands in January - A date with non-ASCII letters (
2024é) is rejected instead of crashing 2 days agoand similar day offsets keep the time of day across a daylight saving change- Comparing a boolean with a number gives the same result in either order (
is_file = sizeandsize = is_file); the boolean counts as 1 or 0 HAVINGreads a computed right-hand operand as a number, date or boolean the same wayWHEREdoes