File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 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+ } ) ;
You can’t perform that action at this time.
0 commit comments