Skip to content

joinstar option not working #1004

@mathiasrw

Description

@mathiasrw

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions