bitemyapp / esqueleto

New home of Esqueleto, please file issues so we can get things caught up!
BSD 3-Clause "New" or "Revised" License
370 stars 107 forks source link

Revert change to ToAlias and refix union bug #336

Closed belevy closed 1 year ago

belevy commented 1 year ago

334 broke the behavior of nested subqueries

from $ from $ from table would not correctly re-alias the values.

This PR reverts that fix and substitutes it with a different one that addresses union(set operations) directly by changing how it reuses variable names.

Lesson Learned: Do not try to reuse variable names unless you want pain

parsonsmatt commented 1 year ago

released as 3.5.8.1