Changing the visibility of aliases entered in GROUP BY expr AS alias for WHERE

Since this version, in a query like

SELECT foo, ... WHERE foo = 1 GROUP BY expr AS foo

the value of foo in WHERE is taken from the original table, and not equal to expr as it was previously.

To get an error from the query if it changes behavior in this version, you need to add

PRAGMA FailOnGroupByExprOverride;

If you want to keep the previous behavior, you need to transform the query into this form:

SELECT foo, ... FROM (SELECT expr AS foo ...) WHERE foo = 1 GROUP BY foo

If you need to prepare the query for the transition to a new version, it is enough to remove the shadowing of the column name by the alias:

SELECT foo_new, ... WHERE foo = 1 GROUP BY expr AS foo_new

Changes in the String module

  • Removed String::Reverse function, use Unicode::Reverse.
  • Removed String::HasPrefixIgnoreCase and String::StartsWithIgnoreCase functions, use String::AsciiStartsWithIgnoreCase.
  • Removed String::HasSuffixIgnoreCase and String::EndsWithIgnoreCase functions, use String::AsciiEndsWithIgnoreCase.
  • Added String::AsciiContainsIgnoreCase and String::AsciiEqualsIgnoreCase functions.
  • Added String::ReverseBytes and String::ReverseBits functions.
Previous