Move the generation of output column names earlier, to right after name
commit0ffb2d8acf944b45f918b42a51caeaf8637bc4bc
authorD. Richard Hipp <drh@hwaci.com>
Sat, 29 Jul 2017 16:01:55 +0000 (29 16:01 +0000)
committerD. Richard Hipp <drh@hwaci.com>
Sat, 29 Jul 2017 16:01:55 +0000 (29 16:01 +0000)
tree43d03177444332ecfbb4a8402759bf6aebf0fc9c
parent51b150e37c41beba5e0379424ef7906c26c3f408
Move the generation of output column names earlier, to right after name
resolution and before query transformations such as flattening.  This prevents
the names from getting mangled by query transformations, and obviates hacks
in the query flattener that attempt to work around the name mangling.
The resulting code is smaller and faster and gives more consistent output.
This is an alternative fix to ticket [de3403bf5ae5f72ed].
src/select.c