-
Notifications
You must be signed in to change notification settings - Fork 689
Open
Description
Spawned from #547 (comment)
The alasql.options.joinstar option seems not working now.
If we reproduce the example of @filipkis, but defining alasql.options.joinstar = 'underscore', the result is not the expected:
var data = [{ dep: 'A', qt: 10, price: 5, extra: 1}];
var data2 = [{ dep: 'B', qt: 2, price: 5}];
alasql.options.joinstar = 'underscore';
var res = alasql('SELECT * FROM ? as a JOIN ? as b',[data,data2]);
results is:
[{"dep":"B","qt":2,"price":5,"extra":1}]
and it should be
[{ data_dep: 'A', data_qt: 10, data_price: 5, data_extra: 1,data2_dep: 'B', data2_qt: 2, data2_price: 5 }]
if I'm not wrong.
Copilot