Skip to content

v1.3.2

  • v1.3.2
  • f4bf27d
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • v1.3.2
  • f4bf27d
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@rodloboz rodloboz tagged this 25 Oct 08:22
* fix(preflight): sorts by output columns and generate_series aliases are not whole rows (#374)

With a column policy on a table, the column check refused two shapes of
SQL that read no row:

- ORDER BY a name that is an output column named like a table
  (count(*) AS users ... ORDER BY users). PostgreSQL, MySQL and SQLite
  sort by the output column there. Only a whole ORDER BY item that names
  an output alias of its own query passes; in an expression, GROUP BY or
  a window the name is still taken for the row.
- The alias of generate_series or generate_subscripts in FROM, and its
  column alias list, which name a number or a time. Their arguments are
  still checked. Other functions' aliases stay refused, as the check
  can't know what a function returns.

Co-authored-by: Claude <noreply@anthropic.com>
(cherry picked from commit 3222b5474924fc7878c6df73c6b4b80207095f1b)

* chore(release): 1.3.2

---------

Co-authored-by: Claude <noreply@anthropic.com>
Assets 2
Loading