Skip to content

Commit 7e9a55f

Browse files
committed
Add test for #1983 fix
1 parent 7d8d8bb commit 7e9a55f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

test/test1983.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
if (typeof exports === 'object') {
2+
var assert = require('assert');
3+
var alasql = require('..');
4+
}
5+
6+
const test = '1983'; // insert test file number
7+
8+
describe('Test 1983 - multiple statements', function () {
9+
10+
before(function () {
11+
alasql('create database test' + test);
12+
alasql('use test' + test);
13+
alasql('CREATE TABLE a (anything string);')
14+
});
15+
16+
after(function () {
17+
alasql('drop database test' + test);
18+
});
19+
20+
it('USING followed by name', function () {
21+
assert.doesNotThrow(() => alasql('SELECT * FROM a a1 JOIN a a2 USING c;'));
22+
});
23+
24+
it('USING followed by name in parathesis', function () {
25+
assert.doesNotThrow(() => alasql('SELECT * FROM a a1 JOIN a a2 USING (c);'));
26+
});
27+
});

0 commit comments

Comments
 (0)