@Test public void testSQL11ReservedKeyWords_ALL() { try { parse("CREATE TABLE ALL (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'ALL' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_AS() { try { parse("CREATE TABLE AS (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'AS' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_AUTHORIZATION() { try { parse("CREATE TABLE AUTHORIZATION (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'AUTHORIZATION' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_BETWEEN() { try { parse("CREATE TABLE BETWEEN (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'BETWEEN' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_BOOLEAN() { try { parse("CREATE TABLE BOOLEAN (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'BOOLEAN' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_BY() { try { parse("CREATE TABLE BY (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'BY' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_DECIMAL() { try { parse("CREATE TABLE DECIMAL (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'DECIMAL' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_INSERT() { try { parse("CREATE TABLE INSERT (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'INSERT' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_INTERSECT() { try { parse("CREATE TABLE INTERSECT (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'INTERSECT' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_LATERAL() { try { parse("CREATE TABLE LATERAL (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'LATERAL' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_ORDER() { try { parse("CREATE TABLE ORDER (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'ORDER' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_RANGE() { try { parse("CREATE TABLE RANGE (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'RANGE' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_READS() { try { parse("CREATE TABLE READS (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'READS' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_RIGHT() { try { parse("CREATE TABLE RIGHT (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'RIGHT' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_SET() { try { parse("CREATE TABLE SET (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'SET' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_VALUES() { try { parse("CREATE TABLE VALUES (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'VALUES' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_BINARY() { try { parse("CREATE TABLE BINARY (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'BINARY' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_FULL() { try { parse("CREATE TABLE FULL (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'FULL' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_ROW() { try { parse("CREATE TABLE ROW (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'ROW' '(' 'col' in table name", ex.getMessage()); } }
@Test public void testSQL11ReservedKeyWords_USING() { try { parse("CREATE TABLE USING (col STRING)"); Assert.assertFalse("Expected ParseException", true); } catch (ParseException ex) { Assert.assertEquals( "Failure didn't match.", "line 1:13 cannot recognize input near 'USING' '(' 'col' in table name", ex.getMessage()); } }