vitess.io/vitess@v0.16.2/go/vt/vtexplain/testdata/comments-queries.sql (about)

     1  
     2  /* this is a comment about a commented query */
     3  /* SELECT * from users; */
     4  
     5  /* this is a comment about another commented query */
     6  -- SELECT * from users;
     7  
     8  /* this is a comment about a query with a semicolon; or two; */
     9  SELECT * from user;
    10  
    11  /* this is a semicolon with no query */
    12  ;
    13  
    14  -- this is a single line comment at the end of the file
    15  
    16  -- semicolon in comment
    17  select /* ; */ 1 from user;
    18  
    19  -- semicolon in string
    20  select 1 from user where x=';';
    21  
    22  -- comment value in string
    23  select 1 from user where x='/* hello */';
    24  
    25  -- comment value with semicolon in string
    26  select 1 from user where x='/* ; */';