You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RECORDSET OF SELECT * over a join lists a shared column twice #2636
RECORDSET OF SELECT * over a join lists a column twice when both tables have it, while each row has it once.
Reproduced on develop:
alasql('CREATE TABLE t (a INT, b INT, c INT); CREATE TABLE u (a INT, d INT)');alasql('INSERT INTO t VALUES (1,2,3); INSERT INTO u VALUES (1,4)');alasql('RECORDSET OF SELECT * FROM t JOIN u ON t.a = u.a').columns.map(c=>c.columnid);// ['a', 'b', 'c', 'a', 'd'] expected ['a', 'b', 'c', 'd']
The same happens when the result has no rows.
Direction
Build the column list for * the same way the rows are built, so a name that several sources share appears once, in the position of its first source.
Tests: the example with and without rows; t.* over the same join (already ['a', 'b', 'c']) unchanged.
Activity
mateuscmtropical commentedon Nov 11, 2026
Hi, I'd like to work on this one.
mateuscmtropical commentedon Nov 11, 2026
Hi, I've opened a PR for this: #3015